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:
c20f5b0
)
Fix dumb regression in constant folding (Regression/C/casts)
author
Dale Johannesen
<dalej@apple.com>
Thu, 20 Sep 2007 16:50:21 +0000
(16:50 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Thu, 20 Sep 2007 16:50:21 +0000
(16:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42165
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/ConstantFold.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/ConstantFold.cpp
b/lib/VMCore/ConstantFold.cpp
index fb8b6db5cf51ad41c6974a459aaf0b6789f09883..917098d35137ce93926f5b51182ca762e7702c4e 100644
(file)
--- a/
lib/VMCore/ConstantFold.cpp
+++ b/
lib/VMCore/ConstantFold.cpp
@@
-213,7
+213,7
@@
Constant *llvm::ConstantFoldCastInstruction(unsigned opc, const Constant *V,
return 0; // Other pointer types cannot be casted
case Instruction::UIToFP:
if (const ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
- double d = CI->getValue().
signedR
oundToDouble();
+ double d = CI->getValue().
r
oundToDouble();
if (DestTy==Type::FloatTy)
return ConstantFP::get(DestTy, APFloat((float)d));
else if (DestTy==Type::DoubleTy)