Skip to content

Commit 1ae99f5

Browse files
committed
[msan] Fix -Wunused-but-set-variable after #147839
1 parent 2eab6f9 commit 1ae99f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4319,7 +4319,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
43194319
assert(isPowerOf2_64(IdxVectorSize));
43204320

43214321
// Compiler isn't smart enough, let's help it
4322-
if (auto *ConstantIdx = dyn_cast<Constant>(Idx))
4322+
if (isa<Constant>(Idx))
43234323
return;
43244324

43254325
Value *Truncated = IRB.CreateTrunc(

0 commit comments

Comments
 (0)