Fix shadow variable warning. NFC.

This commit is contained in:
Simon Pilgrim 2020-03-02 11:19:48 +00:00
parent 174cb7c695
commit d20fb7ea13
1 changed files with 2 additions and 2 deletions

View File

@ -894,8 +894,8 @@ bool TargetLowering::SimplifyDemandedBits(
return false; // Don't fall through, will infinitely loop.
} else if (ISD::isZEXTLoad(Op.getNode()) && Op.getResNo() == 0) {
// If this is a ZEXTLoad and we are looking at the loaded value.
EVT VT = LD->getMemoryVT();
unsigned MemBits = VT.getScalarSizeInBits();
EVT MemVT = LD->getMemoryVT();
unsigned MemBits = MemVT.getScalarSizeInBits();
Known.Zero.setBitsFrom(MemBits);
return false; // Don't fall through, will infinitely loop.
}