Index: src/rewriter.cc |
diff --git a/src/rewriter.cc b/src/rewriter.cc |
index 4ddf1bf6f131e51fd9dddd83ac97ff15453f4da3..d5c0750b290203c41d69185fd0ea312036476e2f 100644 |
--- a/src/rewriter.cc |
+++ b/src/rewriter.cc |
@@ -525,8 +525,8 @@ void AstOptimizer::VisitBinaryOperation(BinaryOperation* node) { |
Variable* rvar = rvar_proxy->AsVariable(); |
if (lvar != NULL && rvar != NULL) { |
if (lvar->mode() == Variable::VAR && rvar->mode() == Variable::VAR) { |
- Slot* lslot = lvar->slot(); |
- Slot* rslot = rvar->slot(); |
+ Slot* lslot = lvar->AsSlot(); |
+ Slot* rslot = rvar->AsSlot(); |
if (lslot->type() == rslot->type() && |
(lslot->type() == Slot::PARAMETER || |
lslot->type() == Slot::LOCAL) && |