[llvm] ee1ee11 - Fix unused variable warning in non-debug build after 7d3dfc862d283319d01997c0672c50b4a082aa4e (NFC)
Jorge Gorbe Moya via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 3 16:50:41 PDT 2025
Author: Jorge Gorbe Moya
Date: 2025-04-03T16:50:19-07:00
New Revision: ee1ee1144a20c439432a4f6075bdd7aa0afcfb9f
URL: https://github.com/llvm/llvm-project/commit/ee1ee1144a20c439432a4f6075bdd7aa0afcfb9f
DIFF: https://github.com/llvm/llvm-project/commit/ee1ee1144a20c439432a4f6075bdd7aa0afcfb9f.diff
LOG: Fix unused variable warning in non-debug build after 7d3dfc862d283319d01997c0672c50b4a082aa4e (NFC)
Added:
Modified:
llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.cpp b/llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.cpp
index b871ecfb4f0d8..c2dae5e3e5443 100644
--- a/llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.cpp
@@ -235,7 +235,7 @@ static void printSymbolEntry(raw_ostream &OS,
Error XCOFFLinkGraphBuilder::processCsectsAndSymbols() {
LLVM_DEBUG(dbgs() << " Creating graph blocks and symbols...\n");
- for (auto [K, V] : SectionTable) {
+ for ([[maybe_unused]] auto [K, V] : SectionTable) {
LLVM_DEBUG(dbgs() << " section entry(idx: " << K
<< " section: " << V.Section->getName() << ")\n");
}
More information about the llvm-commits
mailing list