[cfe-commits] r134864 - /cfe/trunk/lib/CodeGen/CGExpr.cpp

Chris Lattner sabre at nondot.org
Sat Jul 9 22:44:18 PDT 2011


Author: lattner
Date: Sun Jul 10 00:44:18 2011
New Revision: 134864

URL: http://llvm.org/viewvc/llvm-project?rev=134864&view=rev
Log:
revert part of r134860, which is empirically unnecessary after the proper fix

Modified:
    cfe/trunk/lib/CodeGen/CGExpr.cpp

Modified: cfe/trunk/lib/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExpr.cpp?rev=134864&r1=134863&r2=134864&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Sun Jul 10 00:44:18 2011
@@ -755,10 +755,6 @@
     return Builder.CreateTrunc(Value, Builder.getInt1Ty(), "tobool");
   }
 
-  // If this is a pointer r-value, make sure that it has the right scalar type.
-  if (isa<llvm::PointerType>(Value->getType()))
-    return Builder.CreateBitCast(Value, ConvertType(Ty));
-
   return Value;
 }
 





More information about the cfe-commits mailing list