From: Chris Lattner Date: Sun, 26 Aug 2007 07:06:24 +0000 (+0000) Subject: implicit casts take care of this code, remove it now. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abe6719793651c0bd7f2329616a4e4ef90b324db;p=clang implicit casts take care of this code, remove it now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41434 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CodeGen/CGExpr.cpp b/CodeGen/CGExpr.cpp index 3a4e406c76..776ec78b51 100644 --- a/CodeGen/CGExpr.cpp +++ b/CodeGen/CGExpr.cpp @@ -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(ArgTy.getCanonicalType())) { if (BT->getKind() == BuiltinType::Float)