summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-09-28 03:47:11 +0000
committerBill Wendling <isanbard@gmail.com>2011-09-28 03:47:11 +0000
commit225e8481b021421bb807996ccea166f7cfe86833 (patch)
tree9aa1346091943b2806cbe35a437ff6d9d55a9bf1 /llvm/lib/CodeGen
parent66b110f57123b3deee657ad368b95460d5a414a7 (diff)
downloadbcm5719-llvm-225e8481b021421bb807996ccea166f7cfe86833.tar.gz
bcm5719-llvm-225e8481b021421bb807996ccea166f7cfe86833.zip
Bitcast the alloca to an i8* to match the intrinsic's signature.
llvm-svn: 140677
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SjLjEHPrepare.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SjLjEHPrepare.cpp b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
index 9749a7e1191..c9be9b3a5d9 100644
--- a/llvm/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
@@ -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];
OpenPOWER on IntegriCloud