OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ef9417
)
Bitcast the alloca to an i8* to match the intrinsic's signature.
author
Bill Wendling
<isanbard@gmail.com>
Wed, 28 Sep 2011 03:47:11 +0000
(
03:47
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Wed, 28 Sep 2011 03:47:11 +0000
(
03:47
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140677
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SjLjEHPrepare.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SjLjEHPrepare.cpp
b/lib/CodeGen/SjLjEHPrepare.cpp
index
9749a7e
..
c9be9b3
100644
(file)
--- a/
lib/CodeGen/SjLjEHPrepare.cpp
+++ b/
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];