mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Bitcast the alloca to an i8* to match the intrinsic's signature.
llvm-svn: 140677
This commit is contained in:
parent
b3656866e2
commit
7df5ebd83c
@ -725,7 +725,10 @@ void SjLjEHPass::setupFunctionContext(Function &F,
|
||||
// where to look for it.
|
||||
CallInst::Create(Intrinsic::getDeclaration(F.getParent(),
|
||||
Intrinsic::eh_sjlj_functioncontext),
|
||||
FuncCtx, "", EntryBB->getTerminator());
|
||||
CastInst::Create(Instruction::BitCast, FuncCtx,
|
||||
Type::getInt8PtrTy(F.getContext()), "",
|
||||
EntryBB->getTerminator()),
|
||||
"", EntryBB->getTerminator());
|
||||
|
||||
// Fill in the function context structure.
|
||||
Value *Idxs[2];
|
||||
|
Loading…
Reference in New Issue
Block a user