Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index ebb0ad55e0d71be882f00ca934cd4a11fab7b267..1431727f819eafea49791da6ecea8789398024e8 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -128,7 +128,7 @@ void HValue::UpdateRepresentation(Representation new_rep, |
const char* reason) { |
Representation r = representation(); |
if (new_rep.is_more_general_than(r)) { |
- if (CheckFlag(kCannotBeTagged) && r.IsTagged()) return; |
+ if (CheckFlag(kCannotBeTagged) && new_rep.IsTagged()) return; |
if (FLAG_trace_representation) { |
PrintF("Changing #%d %s representation %s -> %s based on %s\n", |
id(), Mnemonic(), r.Mnemonic(), new_rep.Mnemonic(), reason); |