summaryrefslogtreecommitdiff
path: root/src/passes/SpillPointers.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-12-05 13:09:21 -0600
committerGitHub <noreply@github.com>2019-12-05 13:09:21 -0600
commita28343a33ed28b4d5c83c37e350aceaf09b5246f (patch)
tree084a487cdf79e8025246d2a85d5578c113c9ad51 /src/passes/SpillPointers.cpp
parentcbf121df96cfce5038f52ed04f9780e19ed3b762 (diff)
downloadbinaryen-a28343a33ed28b4d5c83c37e350aceaf09b5246f.tar.gz
binaryen-a28343a33ed28b4d5c83c37e350aceaf09b5246f.tar.bz2
binaryen-a28343a33ed28b4d5c83c37e350aceaf09b5246f.zip
Add string parameter to WASM_UNREACHABLE (#2499)
This works more like llvm's unreachable handler in that is preserves information even in release builds.
Diffstat (limited to 'src/passes/SpillPointers.cpp')
-rw-r--r--src/passes/SpillPointers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/SpillPointers.cpp b/src/passes/SpillPointers.cpp
index 5c3d546ad..10fa58845 100644
--- a/src/passes/SpillPointers.cpp
+++ b/src/passes/SpillPointers.cpp
@@ -132,7 +132,7 @@ struct SpillPointers
pointer, toSpill, spillLocal, pointerMap, func, getModule());
}
} else {
- WASM_UNREACHABLE();
+ WASM_UNREACHABLE("unexpected action");
}
}
}
@@ -179,7 +179,7 @@ struct SpillPointers
}
handleOperand(call->cast<CallIndirect>()->target);
} else {
- WASM_UNREACHABLE();
+ WASM_UNREACHABLE("unexpected expr");
}
// add the spills
for (auto index : toSpill) {