Fix failing assertion when running the test suite

The test suite does things like "1 instanceof 1" and expects a
type error to be thrown. Therefore we should not assert(!"unreachable")
when instanceof is called with a numberic constant but just fall back
to the run-time implementation, which does the right thing.

Change-Id: Iced93e679d56f4491d38c50b669e12dd160c220c
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
Simon Hausmann 2013-02-26 12:45:47 +01:00 committed by Lars Knoll
parent 5c8c2307c5
commit 2fa092cbcd
1 changed files with 0 additions and 1 deletions

View File

@ -661,7 +661,6 @@ IR::Expr *Codegen::binop(IR::AluOp op, IR::Expr *left, IR::Expr *right)
case IR::OpInstanceof:
case IR::OpIn:
assert(!"unreachabe");
break;
case IR::OpIfTrue: // unary ops