r234032 - [opaque pointer type] Explicitly specify type to CreateGEP
David Blaikie
dblaikie at gmail.com
Fri Apr 3 10:47:16 PDT 2015
Author: dblaikie
Date: Fri Apr 3 12:47:16 2015
New Revision: 234032
URL: http://llvm.org/viewvc/llvm-project?rev=234032&view=rev
Log:
[opaque pointer type] Explicitly specify type to CreateGEP
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=234032&r1=234031&r2=234032&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Fri Apr 3 12:47:16 2015
@@ -3815,8 +3815,8 @@ void CGObjCMac::EmitTryOrSynchronizedStm
// - Call setjmp on the exception data buffer.
llvm::Constant *Zero = llvm::ConstantInt::get(CGF.Builder.getInt32Ty(), 0);
llvm::Value *GEPIndexes[] = { Zero, Zero, Zero };
- llvm::Value *SetJmpBuffer =
- CGF.Builder.CreateGEP(ExceptionData, GEPIndexes, "setjmp_buffer");
+ llvm::Value *SetJmpBuffer = CGF.Builder.CreateGEP(
+ ObjCTypes.ExceptionDataTy, ExceptionData, GEPIndexes, "setjmp_buffer");
llvm::CallInst *SetJmpResult = CGF.EmitNounwindRuntimeCall(
ObjCTypes.getSetJmpFn(), SetJmpBuffer, "setjmp_result");
SetJmpResult->setCanReturnTwice();
More information about the cfe-commits
mailing list