mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 07:00:45 +00:00
Bitcast the alloca to an i8* to match the intrinsic's signature.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140677 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6ef94175d1
commit
eef108d560
@ -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