[llvm] b987fe4 - Silence unused variable warning in release builds. NFC

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 18 00:16:02 PDT 2022


Author: Benjamin Kramer
Date: 2022-09-18T09:15:32+02:00
New Revision: b987fe4972f497e5a040625fe0936a7bc6ca30e1

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

LOG: Silence unused variable warning in release builds. NFC

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/ModuleInliner.cpp

Removed: 
    


################################################################################
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()


        


More information about the llvm-commits mailing list