From: Chris Lattner Date: Wed, 23 May 2007 01:17:04 +0000 (+0000) Subject: fix a miscompilation when passing a float through varargs X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2b7e0ade62096379e345ea0ca83280a85dbd0092;p=oota-llvm.git fix a miscompilation when passing a float through varargs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37297 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index db105adf7ff..2a227423b60 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -389,8 +389,7 @@ static const Type *getPromotedType(const Type *Ty) { if (const IntegerType* ITy = dyn_cast(Ty)) { if (ITy->getBitWidth() < 32) return Type::Int32Ty; - } else if (Ty == Type::FloatTy) - return Type::DoubleTy; + } return Ty; }