Skip to content

Commit 57d87ed

Browse files
authored
[flang][NFC] Add parenthesis to avoid warning (#131219)
Remove warning introduced in 369da84
1 parent 37d99e9 commit 57d87ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flang/include/flang/Lower/BoxAnalyzer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,9 @@ class BoxAnalyzer : public fir::details::matcher<BoxAnalyzer> {
403403
continue;
404404
}
405405
} else if (subs.ubound().isStar()) {
406-
assert(Fortran::semantics::IsNamedConstant(sym) ||
407-
Fortran::semantics::IsCUDAShared(sym) &&
408-
"expect implied shape constant");
406+
assert((Fortran::semantics::IsNamedConstant(sym) ||
407+
Fortran::semantics::IsCUDAShared(sym)) &&
408+
"expect implied shape constant");
409409
shapes.push_back(fir::SequenceType::getUnknownExtent());
410410
continue;
411411
}

0 commit comments

Comments
 (0)