summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/passes/I64ToI32Lowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/passes/I64ToI32Lowering.cpp b/src/passes/I64ToI32Lowering.cpp
index a9ac2da82..e617c3b83 100644
--- a/src/passes/I64ToI32Lowering.cpp
+++ b/src/passes/I64ToI32Lowering.cpp
@@ -421,10 +421,12 @@ struct I64ToI32Lowering : public WalkerPass<PostWalker<I64ToI32Lowering>> {
}
void visitGetGlobal(GetGlobal* curr) {
+ if (curr->type != i64) return;
assert(false && "GetGlobal not implemented");
}
void visitSetGlobal(SetGlobal* curr) {
+ if (curr->type != i64) return;
assert(false && "SetGlobal not implemented");
}