20#if LLVM_ENABLE_ABI_BREAKING_CHECKS
21 assert(!reported &&
"attempting to report a diagnostic more than once");
24 if (!diagnostics.empty()) {
25 for (
auto &&diagnostic : diagnostics) {
26 diagnostic.getLocation().getContext()->getDiagEngine().emit(
27 std::move(diagnostic));
30 result = ::mlir::failure();