Whoops, fix typo in last commit.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 21 Jan 2007 02:29:10 +0000 (02:29 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 21 Jan 2007 02:29:10 +0000 (02:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33417 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Constants.cpp

index 243365e9c6618532a6a50c33d11576dca5b904d1..93f83838762662e4677cd51d8d31388582a2736a 100644 (file)
@@ -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);