mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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:
parent
3af8c6ee61
commit
2c7123c558
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user