projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84c614d
)
fix a miscompilation when passing a float through varargs
author
Chris Lattner
<sabre@nondot.org>
Wed, 23 May 2007 01:17:04 +0000
(
01:17
+0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index db105adf7ff4195f2f151b31ed40aa0ac6e1812a..2a227423b60fff85819f92975ffa4710736f760d 100644
(file)
--- 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;
}