[cfe-commits] r63981 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Fariborz Jahanian fjahanian at apple.com
Fri Feb 6 15:46:26 PST 2009


Author: fjahanian
Date: Fri Feb  6 17:46:26 2009
New Revision: 63981

URL: http://llvm.org/viewvc/llvm-project?rev=63981&view=rev
Log:
Fixed an objc2 nonfragile-abi code gen bug.
Now we can say 'hello world' objective-c style
in the nonfragile abi.

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=63981&r1=63980&r2=63981&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Fri Feb  6 17:46:26 2009
@@ -4399,10 +4399,6 @@
   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));





More information about the cfe-commits mailing list