Skip to content

Commit 3d3f8d9

Browse files
committed
Change error to unreachable
1 parent 44e5c34 commit 3d3f8d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3673,7 +3673,8 @@ static bool IsReductionAllowedForType(
36733673
return CheckSymbolSupportsType(
36743674
scope, MangleDefinedOperator(definedOp->v.symbol->name()), type);
36753675
}
3676-
DIE("Intrinsic Operator not found - parsing gone wrong?");
3676+
llvm_unreachable(
3677+
"A DefinedOperator is either a DefinedOpName or an IntrinsicOperator");
36773678
}};
36783679

36793680
auto checkDesignator{[&](const parser::ProcedureDesignator &procD) {

0 commit comments

Comments
 (0)