Whoops, fix typo in last commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33417 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-01-21 02:29:10 +00:00
parent 3af8c6ee61
commit 2c7123c558

View 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);