Skip to content

Commit a0686cf

Browse files
committed
Make NumActiveChains maybe_unused to fix non-assertions build
1 parent 9368d54 commit a0686cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/CodeLayout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ class CDSortImpl {
11091109
std::set<ChainEdge *, decltype(GainComparator)> Queue(GainComparator);
11101110

11111111
// Insert the edges into the queue.
1112-
size_t NumActiveChains = 0;
1112+
[[maybe_unused]] size_t NumActiveChains = 0;
11131113
for (NodeT &Node : AllNodes) {
11141114
if (Node.ExecutionCount == 0)
11151115
continue;

0 commit comments

Comments
 (0)