fix a miscompilation when passing a float through varargs
authorChris Lattner <sabre@nondot.org>
Wed, 23 May 2007 01:17:04 +0000 (01:17 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 May 2007 01:17:04 +0000 (01:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37297 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index db105adf7ff4195f2f151b31ed40aa0ac6e1812a..2a227423b60fff85819f92975ffa4710736f760d 100644 (file)
@@ -389,8 +389,7 @@ static const Type *getPromotedType(const Type *Ty) {
   if (const IntegerType* ITy = dyn_cast<IntegerType>(Ty)) {
     if (ITy->getBitWidth() < 32)
       return Type::Int32Ty;
-  } else if (Ty == Type::FloatTy)
-    return Type::DoubleTy;
+  }
   return Ty;
 }