Index: src/typing-asm.cc |
diff --git a/src/typing-asm.cc b/src/typing-asm.cc |
index 2390e7e7b12a824229e8d68768896c35791836d4..710f19cb48fd4d3324e6022d331919a0b6472987 100644 |
--- a/src/typing-asm.cc |
+++ b/src/typing-asm.cc |
@@ -340,7 +340,7 @@ void AsmTyper::VisitIfStatement(IfStatement* stmt) { |
if (!in_function_) { |
FAIL(stmt, "if statement inside module body"); |
} |
- RECURSE(VisitWithExpectation(stmt->condition(), cache_.kAsmSigned, |
+ RECURSE(VisitWithExpectation(stmt->condition(), cache_.kAsmIntQ, |
bradnelson
2016/06/28 15:07:57
These should be AsmInt not AsmInt.
Also maybe add
aseemgarg
2016/06/29 00:05:01
Done.
|
"if condition expected to be integer")); |
RECURSE(Visit(stmt->then_statement())); |
RECURSE(Visit(stmt->else_statement())); |
@@ -434,7 +434,7 @@ void AsmTyper::VisitDoWhileStatement(DoWhileStatement* stmt) { |
FAIL(stmt, "do statement inside module body"); |
} |
RECURSE(Visit(stmt->body())); |
- RECURSE(VisitWithExpectation(stmt->cond(), cache_.kAsmSigned, |
+ RECURSE(VisitWithExpectation(stmt->cond(), cache_.kAsmIntQ, |
"do condition expected to be integer")); |
} |
@@ -443,7 +443,7 @@ void AsmTyper::VisitWhileStatement(WhileStatement* stmt) { |
if (!in_function_) { |
FAIL(stmt, "while statement inside module body"); |
} |
- RECURSE(VisitWithExpectation(stmt->cond(), cache_.kAsmSigned, |
+ RECURSE(VisitWithExpectation(stmt->cond(), cache_.kAsmIntQ, |
"while condition expected to be integer")); |
RECURSE(Visit(stmt->body())); |
} |
@@ -457,7 +457,7 @@ void AsmTyper::VisitForStatement(ForStatement* stmt) { |
RECURSE(Visit(stmt->init())); |
} |
if (stmt->cond() != nullptr) { |
- RECURSE(VisitWithExpectation(stmt->cond(), cache_.kAsmSigned, |
+ RECURSE(VisitWithExpectation(stmt->cond(), cache_.kAsmIntQ, |
"for condition expected to be integer")); |
} |
if (stmt->next() != nullptr) { |