Skip to content

Commit 5d9fa4d

Browse files
jyknighttru
authored andcommitted
SPIRV: Fix compilation in NDEBUG.
(cherry picked from commit 59351fe)
1 parent b73d2c8 commit 5d9fa4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/SPIRV/SPIRVDuplicatesTracker.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ void SPIRVGeneralDuplicatesTracker::buildDepsGraph(
7070
}
7171
}
7272

73+
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
7374
if (MMI) {
7475
const Module *M = MMI->getModule();
7576
for (auto F = M->begin(), E = M->end(); F != E; ++F) {
@@ -92,4 +93,5 @@ void SPIRVGeneralDuplicatesTracker::buildDepsGraph(
9293
}
9394
}
9495
}
96+
#endif
9597
}

0 commit comments

Comments
 (0)