Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index c59e5a6ae6d08871cf6e4fb0f2fb50c33710e017..e1341ac8786f31aa3f00a5a4a18d6d05c2e45d31 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -2962,6 +2962,7 @@ Node* WasmGraphBuilder::LoadMem(wasm::LocalType type, MachineType memtype, |
if (aligned || |
jsgraph()->machine()->UnalignedLoadSupported(memtype, alignment)) { |
if (FLAG_wasm_trap_handler) { |
+ DCHECK(FLAG_wasm_guard_pages); |
Node* context = HeapConstant(module_->instance->context); |
Node* position_node = jsgraph()->Int32Constant(position); |
load = graph()->NewNode(jsgraph()->machine()->ProtectedLoad(memtype), |