We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96d6831 commit 549d72aCopy full SHA for 549d72a
src/passes/shadowstack.ts
@@ -658,6 +658,7 @@ class InstrumentReturns extends Pass {
658
var stmts = new Array<ExpressionRef>();
659
if (value) {
660
let returnType = _BinaryenExpressionGetType(value);
661
+ if (returnType == TypeRef.Unreachable) return;
662
let temp = this.parentPass.getSharedTemp(this.currentFunction, returnType);
663
// t = value
664
stmts.push(
0 commit comments