Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index a97e08307615c50b73b794fbcb582349f5ec541d..328ec327b14a97f33feca09a64558c120ef23d88 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -1832,7 +1832,7 @@ void HGraphBuilder::BuildCompareNil( |
} else { |
if_nil.Then(); |
if_nil.Else(); |
- if (types.Contains(CompareNilICStub::MONOMORPHIC_MAP)) { |
+ if (!map.is_null() && types.Contains(CompareNilICStub::MONOMORPHIC_MAP)) { |
BuildCheckNonSmi(value); |
// For ICs, the map checked below is a sentinel map that gets replaced by |
// the monomorphic map when the code is used as a template to generate a |