forked from OSchip/llvm-project
[opaque pointer type] Explicitly specify type to CreateGEP
llvm-svn: 234032
This commit is contained in:
parent
e376d16f95
commit
6b2a8306a5
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue