Skip to content

Commit fb870cb

Browse files
authored
[ORC] Fix unused variable warning (#164444)
This fixes a potentially unused variable that's only used in an assert. This is a fix for #164340.
1 parent 0c0ad11 commit fb870cb

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)