From 0d6684d7e573c71a8252e65b06158d3f04c7327b Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 23 Sep 2019 11:36:24 +0000 Subject: [PATCH] TargetInstrInfo::getStackSlotRange - fix "variable used but never read" analyzer warning. NFCI. We don't need to divide the BitSize local variable at all. llvm-svn: 372582 --- llvm/lib/CodeGen/TargetInstrInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/TargetInstrInfo.cpp b/llvm/lib/CodeGen/TargetInstrInfo.cpp index 11872e1..fefae2e 100644 --- a/llvm/lib/CodeGen/TargetInstrInfo.cpp +++ b/llvm/lib/CodeGen/TargetInstrInfo.cpp @@ -394,7 +394,7 @@ bool TargetInstrInfo::getStackSlotRange(const TargetRegisterClass *RC, if (BitOffset < 0 || BitOffset % 8) return false; - Size = BitSize /= 8; + Size = BitSize / 8; Offset = (unsigned)BitOffset / 8; assert(TRI->getSpillSize(*RC) >= (Offset + Size) && "bad subregister range"); -- 2.7.4