Skip to content

Commit e6b37dc

Browse files
committed
fix __wasm_setjmp_test invocation
1 parent 68cceec commit e6b37dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,10 +737,8 @@ void WebAssemblyLowerEmscriptenEHSjLj::wrapTestSetjmp(
737737
BasicBlock *EndBB2 = BasicBlock::Create(C, "if.end2", F);
738738
Value *ThrewPtr =
739739
IRB.CreateIntToPtr(Threw, getAddrPtrType(M), Threw->getName() + ".p");
740-
Value *LoadedThrew = IRB.CreateLoad(getAddrIntType(M), ThrewPtr,
741-
ThrewPtr->getName() + ".loaded");
742740
Value *ThenLabel =
743-
IRB.CreateCall(TestSetjmpF, {LoadedThrew, FunctionInvocationId}, "label");
741+
IRB.CreateCall(TestSetjmpF, {ThrewPtr, FunctionInvocationId}, "label");
744742
Value *Cmp2 = IRB.CreateICmpEQ(ThenLabel, IRB.getInt32(0));
745743
IRB.CreateCondBr(Cmp2, CallEmLongjmpBB, EndBB2);
746744

0 commit comments

Comments
 (0)