From b987fe4972f497e5a040625fe0936a7bc6ca30e1 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 18 Sep 2022 09:15:32 +0200 Subject: [PATCH] Silence unused variable warning in release builds. NFC --- llvm/lib/Transforms/IPO/ModuleInliner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Transforms/IPO/ModuleInliner.cpp b/llvm/lib/Transforms/IPO/ModuleInliner.cpp index 1bc3ba9efa94..58dd01527ad6 100644 --- a/llvm/lib/Transforms/IPO/ModuleInliner.cpp +++ b/llvm/lib/Transforms/IPO/ModuleInliner.cpp @@ -183,6 +183,7 @@ PreservedAnalyses ModuleInlinerPass::run(Module &M, // Loop forward over all of the calls. while (!Calls->empty()) { Function &F = *Calls->front().first->getCaller(); + (void)F; LLVM_DEBUG(dbgs() << "Inlining calls in: " << F.getName() << "\n" << " Function size: " << F.getInstructionCount()