Skip to content

Commit d021da7

Browse files
committed
Use CHECK instead of assert
1 parent 15701ee commit d021da7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flang/lib/Semantics/resolve-directives.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2517,8 +2517,7 @@ void OmpAttributeVisitor::ResolveOmpObject(
25172517
if (ompFlag == Symbol::Flag::OmpDeclareTarget) {
25182518
if (symbol->IsFuncResult()) {
25192519
if (Symbol * func{currScope().symbol()}) {
2520-
assert(
2521-
func->IsSubprogram() && "Expecting function scope");
2520+
CHECK(func->IsSubprogram());
25222521
func->set(ompFlag);
25232522
name->symbol = func;
25242523
}

0 commit comments

Comments
 (0)