aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-21 02:29:10 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-21 02:29:10 +0000
commit2c7123c5583040019493882b1491db381cbf4843 (patch)
tree0f59a8805c32cfaf730b8e78b08c409daa6cc174
parent3af8c6ee61478cf38d61c1a221d661129d529adf (diff)
downloadexternal_llvm-2c7123c5583040019493882b1491db381cbf4843.zip
external_llvm-2c7123c5583040019493882b1491db381cbf4843.tar.gz
external_llvm-2c7123c5583040019493882b1491db381cbf4843.tar.bz2
Whoops, fix typo in last commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33417 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Constants.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index 243365e..93f8383 100644
--- a/lib/VMCore/Constants.cpp
+++ b/lib/VMCore/Constants.cpp
@@ -1882,12 +1882,12 @@ Constant *ConstantExpr::getShuffleVector(Constant *V1, Constant *V2,
}
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);