[llvm-branch-commits] [llvm] 5d9fa4d - SPIRV: Fix compilation in NDEBUG.
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Sep 22 07:36:09 PDT 2022
Author: James Y Knight
Date: 2022-09-22T16:35:43+02:00
New Revision: 5d9fa4d16e0e75c069dcbfec30005974c46635d1
URL: https://github.com/llvm/llvm-project/commit/5d9fa4d16e0e75c069dcbfec30005974c46635d1
DIFF: https://github.com/llvm/llvm-project/commit/5d9fa4d16e0e75c069dcbfec30005974c46635d1.diff
LOG: SPIRV: Fix compilation in NDEBUG.
(cherry picked from commit 59351fe340f20a605bae53260ed30a8e0fd95cb6)
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-branch-commits
mailing list