[cfe-commits] r41434 - /cfe/trunk/CodeGen/CGExpr.cpp

Chris Lattner sabre at nondot.org
Sun Aug 26 00:06:25 PDT 2007


Author: lattner
Date: Sun Aug 26 02:06:24 2007
New Revision: 41434

URL: http://llvm.org/viewvc/llvm-project?rev=41434&view=rev
Log:
implicit casts take care of this code, remove it now.

Modified:
    cfe/trunk/CodeGen/CGExpr.cpp

Modified: cfe/trunk/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExpr.cpp?rev=41434&r1=41433&r2=41434&view=diff

==============================================================================
--- cfe/trunk/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/CodeGen/CGExpr.cpp Sun Aug 26 02:06:24 2007
@@ -520,13 +520,12 @@
     RValue ArgVal = EmitAnyExpr(E->getArg(i));
     
     // If this argument has prototype information, convert it.
-    if (ArgTyIt != ArgTyEnd) {
-      ArgVal = EmitConversion(ArgVal, ArgTy, *ArgTyIt++);
-    } else {
+    if (ArgTyIt == ArgTyEnd) {
       // Otherwise, if passing through "..." or to a function with no prototype,
       // perform the "default argument promotions" (C99 6.5.2.2p6), which
       // includes the usual unary conversions, but also promotes float to
       // double.
+      // FIXME: remove this when the impcast is in place.
       if (const BuiltinType *BT = 
           dyn_cast<BuiltinType>(ArgTy.getCanonicalType())) {
         if (BT->getKind() == BuiltinType::Float)





More information about the cfe-commits mailing list