From 470e1d958405a84482780824f7429aebbbc07441 Mon Sep 17 00:00:00 2001 From: =?utf8?q?D=C3=A1vid=20Bolvansk=C3=BD?= Date: Thu, 24 Mar 2022 07:56:03 +0100 Subject: [PATCH] [NFCI] Fix set-but-unused warning in AddressSanitizer.cpp --- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index db877ff..a3a7300 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -2880,7 +2880,6 @@ bool AddressSanitizer::instrumentFunction(Function &F, SmallVector NoReturnCalls; SmallVector AllBlocks; SmallVector PointerComparisonsOrSubtracts; - int NumAllocas = 0; // Fill the set of memory operations to instrument. for (auto &BB : F) { @@ -2920,7 +2919,6 @@ bool AddressSanitizer::instrumentFunction(Function &F, IntrinToInstrument.push_back(MI); NumInsnsPerBB++; } else { - if (isa(Inst)) NumAllocas++; if (auto *CB = dyn_cast(&Inst)) { // A call inside BB. TempsToInstrument.clear(); -- 2.7.4