Fixed an objc2 nonfragile-abi code gen bug.

Now we can say 'hello world' objective-c style
in the nonfragile abi.

llvm-svn: 63981
This commit is contained in:
Fariborz Jahanian 2009-02-06 23:46:26 +00:00
parent 6fbf3a07bc
commit c76e741622
1 changed files with 0 additions and 4 deletions

View File

@ -4399,10 +4399,6 @@ 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::Type *T = llvm::PointerType::getUnqual(ObjCTypes.MessengerTy);
T = llvm::PointerType::getUnqual(T);
Callee = CGF.Builder.CreateBitCast(Callee, T);
Callee = CGF.Builder.CreateLoad(Callee);
const llvm::FunctionType *FTy = Types.GetFunctionType(FnInfo1, false);
Callee = CGF.Builder.CreateBitCast(Callee,
llvm::PointerType::getUnqual(FTy));