Index: runtime/vm/cpuinfo_macos.cc |
diff --git a/runtime/vm/cpuinfo_macos.cc b/runtime/vm/cpuinfo_macos.cc |
index 508851ae0978087dc8d8eeaa8c36ab3eac0a9b7c..eef06d9d8100223a04fa05ad994b86a921ef8182 100644 |
--- a/runtime/vm/cpuinfo_macos.cc |
+++ b/runtime/vm/cpuinfo_macos.cc |
@@ -34,7 +34,7 @@ void CpuInfo::Cleanup() {} |
bool CpuInfo::FieldContains(CpuInfoIndices idx, const char* search_string) { |
ASSERT(method_ != kCpuInfoDefault); |
ASSERT(search_string != NULL); |
- const char* field = FieldName[idx]; |
+ const char* field = FieldName(idx); |
char dest[1024]; |
size_t dest_len = 1024; |