Skip to content

Commit 5a77bdc

Browse files
committed
Fix NDEBUG build: guard call to dump with #if/#endif
1 parent 4005185 commit 5a77bdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/lib/Lower/OpenMP/Clauses.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ struct SymbolAndDesignatorExtractor {
101101
} else {
102102
// This could still be a Substring or ComplexPart, but at least Substring
103103
// is not allowed in OpenMP.
104+
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
104105
maybeDsg->dump();
106+
#endif
105107
llvm_unreachable("Expecting DataRef designator");
106108
}
107109
}

0 commit comments

Comments
 (0)