]> granicus.if.org Git - clang/commitdiff
[opaque pointer type] Explicitly specify type to CreateGEP
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 3 Apr 2015 17:47:16 +0000 (17:47 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 3 Apr 2015 17:47:16 +0000 (17:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234032 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index 4ff5cf714b03af1f07d53239ae77167a4fd32ee4..7ee0b073f9b72dd94685263de0124fa1484daa88 100644 (file)
@@ -3815,8 +3815,8 @@ void CGObjCMac::EmitTryOrSynchronizedStmt(CodeGen::CodeGenFunction &CGF,
   //  - 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();