summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-23 01:17:04 +0000
committerChris Lattner <sabre@nondot.org>2007-05-23 01:17:04 +0000
commitf79577d31428bf7069f40675c339b396c0d3c4d8 (patch)
tree8ee6e6e2e6855253a0832e3dc01b1f870252f6ee /llvm/lib/Transforms
parentc23c9fce3498ea94ee85bf74991c705dda2590ab (diff)
downloadbcm5719-llvm-f79577d31428bf7069f40675c339b396c0d3c4d8.tar.gz
bcm5719-llvm-f79577d31428bf7069f40675c339b396c0d3c4d8.zip
fix a miscompilation when passing a float through varargs
llvm-svn: 37297
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index db105adf7ff..2a227423b60 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -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;
}
OpenPOWER on IntegriCloud