[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp
Reid Spencer
reid at x10sys.com
Sat Jan 20 18:29:26 PST 2007
Changes in directory llvm/lib/VMCore:
Constants.cpp updated: 1.203 -> 1.204
---
Log message:
Whoops, fix typo in last commit.
---
Diffs of the changes: (+6 -6)
Constants.cpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.203 llvm/lib/VMCore/Constants.cpp:1.204
--- llvm/lib/VMCore/Constants.cpp:1.203 Sat Jan 20 18:29:26 2007
+++ llvm/lib/VMCore/Constants.cpp Sat Jan 20 20:29:10 2007
@@ -1882,12 +1882,12 @@
}
Constant *ConstantExpr::getZeroValueForNegationExpr(const Type *Ty) {
- if ((const PackedType *PTy = dyn_cast<PackedType>(Ty)) &&
- PTy->getElementType()->isFloatingPoint()) {
- std::vector<Constant*> zeros(PTy->getNumElements(),
- ConstantFP::get(PTy->getElementType(), -0.0));
- return ConstantPacked::get(PTy, zeros);
- }
+ if (const PackedType *PTy = dyn_cast<PackedType>(Ty))
+ if (PTy->getElementType()->isFloatingPoint()) {
+ std::vector<Constant*> zeros(PTy->getNumElements(),
+ ConstantFP::get(PTy->getElementType(),-0.0));
+ return ConstantPacked::get(PTy, zeros);
+ }
if (Ty->isFloatingPoint())
return ConstantFP::get(Ty, -0.0);
More information about the llvm-commits
mailing list