From 2c7123c5583040019493882b1491db381cbf4843 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 21 Jan 2007 02:29:10 +0000 Subject: [PATCH] Whoops, fix typo in last commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33417 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Constants.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 243365e9c66..93f83838762 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(Ty)) && - PTy->getElementType()->isFloatingPoint()) { - std::vector zeros(PTy->getNumElements(), - ConstantFP::get(PTy->getElementType(), -0.0)); - return ConstantPacked::get(PTy, zeros); - } + if (const PackedType *PTy = dyn_cast(Ty)) + if (PTy->getElementType()->isFloatingPoint()) { + std::vector zeros(PTy->getNumElements(), + ConstantFP::get(PTy->getElementType(),-0.0)); + return ConstantPacked::get(PTy, zeros); + } if (Ty->isFloatingPoint()) return ConstantFP::get(Ty, -0.0);