mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Eliminate unnecessary uses of getZExtValue().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106279 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -210,7 +210,7 @@ bool DwarfEHPrepare::IsACleanupSelector(IntrinsicInst *II) {
|
||||
if (Val + 4 == NumOps) {
|
||||
if (ConstantInt *FinalVal =
|
||||
dyn_cast<ConstantInt>(II->getOperand(NumOps - 1)))
|
||||
return (FinalVal->getZExtValue() == 0);
|
||||
return FinalVal->isZero();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user