Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 76d6614d418569fdb84b3fda0c4de43a6f6a3b0b..b9d4eb0524212a0d9b6d0b4bb7fa0289a38987c7 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1633,11 +1633,13 @@ HValue* HUnaryMathOperation::Canonicalize() { |
HValue* HCheckInstanceType::Canonicalize() { |
if (check_ == IS_STRING && value()->type().IsString()) { |
- return NULL; |
+ return value(); |
} |
if (check_ == IS_INTERNALIZED_STRING && value()->IsConstant()) { |
- if (HConstant::cast(value())->HasInternalizedStringValue()) return NULL; |
+ if (HConstant::cast(value())->HasInternalizedStringValue()) { |
+ return value(); |
+ } |
} |
return this; |
} |