mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 17:28:30 +08:00
Fixed a bad ir-gen bug which caused a dejagnu test to fail.
Now we are pretty close to be in sync with objc's classic abi when it comes to passing dejagnu objc executable tests. llvm-svn: 64569
This commit is contained in:
@@ -4466,7 +4466,7 @@ CodeGen::RValue CGObjCNonFragileABIMac::EmitMessageSend(
|
||||
const CGFunctionInfo &FnInfo1 = Types.getFunctionInfo(ResultType, ActualArgs);
|
||||
llvm::Value *Callee = CGF.Builder.CreateStructGEP(Arg1, 0);
|
||||
Callee = CGF.Builder.CreateLoad(Callee);
|
||||
const llvm::FunctionType *FTy = Types.GetFunctionType(FnInfo1, false);
|
||||
const llvm::FunctionType *FTy = Types.GetFunctionType(FnInfo1, true);
|
||||
Callee = CGF.Builder.CreateBitCast(Callee,
|
||||
llvm::PointerType::getUnqual(FTy));
|
||||
return CGF.EmitCall(FnInfo1, Callee, ActualArgs);
|
||||
|
||||
Reference in New Issue
Block a user