Skip to content

Commit bd8c063

Browse files
committed
[SjLjEHPrepare] Use getSigned() for call site number
This may be -1.
1 parent 45267ec commit bd8c063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SjLjEHPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void SjLjEHPrepareImpl::insertCallSiteStore(Instruction *I, int Number) {
139139
Builder.CreateGEP(FunctionContextTy, FuncCtx, Idxs, "call_site");
140140

141141
// Insert a store of the call-site number
142-
ConstantInt *CallSiteNoC = ConstantInt::get(DataTy, Number);
142+
ConstantInt *CallSiteNoC = ConstantInt::getSigned(DataTy, Number);
143143
Builder.CreateStore(CallSiteNoC, CallSite, true /*volatile*/);
144144
}
145145

0 commit comments

Comments
 (0)