Index: runtime/vm/cpuinfo.h |
=================================================================== |
--- runtime/vm/cpuinfo.h (revision 36919) |
+++ runtime/vm/cpuinfo.h (working copy) |
@@ -58,8 +58,11 @@ |
// Returns the field describing the CPU model. Caller is responsible for |
// freeing the result. |
static const char* GetCpuModel() { |
- ASSERT(HasField(FieldName(kCpuInfoHardware))); |
- return ExtractField(kCpuInfoHardware); |
+ if (HasField(FieldName(kCpuInfoHardware))) { |
+ return ExtractField(kCpuInfoHardware); |
+ } else { |
+ return ""; |
+ } |
} |
private: |