[llvm] d20fb7e - Fix shadow variable warning. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 03:41:40 PST 2020


Author: Simon Pilgrim
Date: 2020-03-02T11:41:20Z
New Revision: d20fb7ea139901ee40a2d13a61af0228e76f8ad9

URL: https://github.com/llvm/llvm-project/commit/d20fb7ea139901ee40a2d13a61af0228e76f8ad9
DIFF: https://github.com/llvm/llvm-project/commit/d20fb7ea139901ee40a2d13a61af0228e76f8ad9.diff

LOG: Fix shadow variable warning. NFC.

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 9f2e453907c9..ae11d7c5dfee 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -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.
     }


        


More information about the llvm-commits mailing list