]> granicus.if.org Git - clang/commitdiff
implicit casts take care of this code, remove it now.
authorChris Lattner <sabre@nondot.org>
Sun, 26 Aug 2007 07:06:24 +0000 (07:06 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 26 Aug 2007 07:06:24 +0000 (07:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41434 91177308-0d34-0410-b5e6-96231b3b80d8

CodeGen/CGExpr.cpp

index 3a4e406c76dc841da632c62809590a9001d76c6f..776ec78b5196411ba8247fac0b474f7b7c32e71f 100644 (file)
@@ -520,13 +520,12 @@ RValue CodeGenFunction::EmitCallExpr(const CallExpr *E) {
     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)