diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-23 01:17:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-23 01:17:04 +0000 |
commit | 2b7e0ade62096379e345ea0ca83280a85dbd0092 (patch) | |
tree | fe8fd99405e7b94b41482a22b993e4db42e41065 /lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | 84c614d1ac671b1a5524169f20028f51c30be728 (diff) |
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
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index db105adf7f..2a227423b6 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<IntegerType>(Ty)) { if (ITy->getBitWidth() < 32) return Type::Int32Ty; - } else if (Ty == Type::FloatTy) - return Type::DoubleTy; + } return Ty; } |