[llvm] 59351fe - SPIRV: Fix compilation in NDEBUG.
James Y Knight via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 12 07:01:35 PDT 2022
Author: James Y Knight
Date: 2022-08-12T14:00:39Z
New Revision: 59351fe340f20a605bae53260ed30a8e0fd95cb6
URL: https://github.com/llvm/llvm-project/commit/59351fe340f20a605bae53260ed30a8e0fd95cb6
DIFF: https://github.com/llvm/llvm-project/commit/59351fe340f20a605bae53260ed30a8e0fd95cb6.diff
LOG: SPIRV: Fix compilation in NDEBUG.
Added:
Modified:
llvm/lib/Target/SPIRV/SPIRVDuplicatesTracker.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/SPIRV/SPIRVDuplicatesTracker.cpp b/llvm/lib/Target/SPIRV/SPIRVDuplicatesTracker.cpp
index 1926977ea66ea..2e426bb79cae6 100644
--- a/llvm/lib/Target/SPIRV/SPIRVDuplicatesTracker.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVDuplicatesTracker.cpp
@@ -70,6 +70,7 @@ void SPIRVGeneralDuplicatesTracker::buildDepsGraph(
}
}
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
if (MMI) {
const Module *M = MMI->getModule();
for (auto F = M->begin(), E = M->end(); F != E; ++F) {
@@ -92,4 +93,5 @@ void SPIRVGeneralDuplicatesTracker::buildDepsGraph(
}
}
}
+#endif
}
More information about the llvm-commits
mailing list