[llvm-commits] [llvm] r140677 - /llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp
Bill Wendling
isanbard at gmail.com
Tue Sep 27 20:47:11 PDT 2011
Author: void
Date: Tue Sep 27 22:47:11 2011
New Revision: 140677
URL: http://llvm.org/viewvc/llvm-project?rev=140677&view=rev
Log:
Bitcast the alloca to an i8* to match the intrinsic's signature.
Modified:
llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp?rev=140677&r1=140676&r2=140677&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp Tue Sep 27 22:47:11 2011
@@ -725,7 +725,10 @@
// 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];
More information about the llvm-commits
mailing list