Fix NDEBUG build: guard call to dump with #if/#endif

This commit is contained in:
Krzysztof Parzyszek 2024-03-14 11:46:52 -05:00
parent 4005185268
commit 5a77bdc3e7

View File

@ -101,7 +101,9 @@ struct SymbolAndDesignatorExtractor {
} else {
// This could still be a Substring or ComplexPart, but at least Substring
// is not allowed in OpenMP.
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
maybeDsg->dump();
#endif
llvm_unreachable("Expecting DataRef designator");
}
}