mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Replace inferred getCast(V,Ty) calls with more strict variants.
Rename getZeroExtend and getSignExtend to getZExt and getSExt to match the the casting mnemonics in the rest of LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32514 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -340,8 +340,8 @@ ConstantRange ConstantRange::zeroExtend(const Type *Ty) const {
|
||||
Constant *Lower = getLower();
|
||||
Constant *Upper = getUpper();
|
||||
|
||||
return ConstantRange(ConstantExpr::getCast(Instruction::ZExt, Lower, Ty),
|
||||
ConstantExpr::getCast(Instruction::ZExt, Upper, Ty));
|
||||
return ConstantRange(ConstantExpr::getZExt(Lower, Ty),
|
||||
ConstantExpr::getZExt(Upper, Ty));
|
||||
}
|
||||
|
||||
/// truncate - Return a new range in the specified integer type, which must be
|
||||
@@ -356,8 +356,8 @@ ConstantRange ConstantRange::truncate(const Type *Ty) const {
|
||||
return ConstantRange(getType());
|
||||
|
||||
return ConstantRange(
|
||||
ConstantExpr::getCast(Instruction::Trunc, getLower(), Ty),
|
||||
ConstantExpr::getCast(Instruction::Trunc, getUpper(), Ty));
|
||||
ConstantExpr::getTrunc(getLower(), Ty),
|
||||
ConstantExpr::getTrunc(getUpper(), Ty));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user