Index: runtime/vm/intermediate_language.cc |
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc |
index 231e9eff503f63daa550b4697714bcdce4304410..bf934dadb294353b22c037ccb0ad46ef0f8c1605 100644 |
--- a/runtime/vm/intermediate_language.cc |
+++ b/runtime/vm/intermediate_language.cc |
@@ -91,10 +91,12 @@ const ICData* Instruction::GetICData( |
if (deopt_id_ < ic_data_array.length()) { |
const ICData* result = ic_data_array[deopt_id_]; |
#if defined(TAG_IC_DATA) |
- if (result->tag() == -1) { |
- result->set_tag(tag()); |
- } else if (result->tag() != tag()) { |
- FATAL("ICData tag mismatch"); |
+ if (result != NULL) { |
+ if (result->tag() == -1) { |
+ result->set_tag(tag()); |
+ } else if (result->tag() != tag()) { |
+ FATAL("ICData tag mismatch"); |
+ } |
} |
#endif |
return result; |