Skip to content

Commit

Permalink
Fix NDEBUG build: guard call to dump with #if/#endif
Browse files Browse the repository at this point in the history
  • Loading branch information
kparzysz committed Mar 14, 2024
1 parent 4005185 commit 5a77bdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flang/lib/Lower/OpenMP/Clauses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 5a77bdc

Please sign in to comment.