Skip to content

Commit 28d740f

Browse files
googlewaltaokblast
authored andcommitted
[ORC] Fix unused variable warning (llvm#164444)
This fixes a potentially unused variable that's only used in an assert. This is a fix for llvm#164340.
1 parent 8a87092 commit 28d740f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/unittests/ExecutionEngine/Orc/WaitingOnGraphTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ class WaitingOnGraphTest : public testing::Test {
5454
return ContainerElementsMap();
5555

5656
ContainerElementsMap Result = SNs[0]->defs();
57+
#ifndef NDEBUG
5758
const ContainerElementsMap &Deps = SNs[0]->deps();
59+
#endif // NDEBUG
5860

5961
for (size_t I = 1; I != SNs.size(); ++I) {
6062
assert(!DepsMustMatch || SNs[I]->deps() == Deps);

0 commit comments

Comments
 (0)