mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +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:
@ -101,7 +101,7 @@ static bool IsNullTerminatedString(const Constant *C) {
|
||||
|
||||
ConstantInt *Null =
|
||||
dyn_cast<ConstantInt>(CVA->getOperand(ATy->getNumElements()-1));
|
||||
if (Null == 0 || Null->getZExtValue() != 0)
|
||||
if (Null == 0 || !Null->isZero())
|
||||
return false; // Not null terminated.
|
||||
|
||||
// Verify that the null doesn't occur anywhere else in the string.
|
||||
|
Reference in New Issue
Block a user