Skip to content

Commit

Permalink
[flang] fix warning after #82042
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanPerier committed Feb 28, 2024
1 parent 9f99eda commit 1d61709
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flang/lib/Lower/HostAssociations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ class CapturedArrays : public CapturedSymbols<CapturedArrays> {
const Fortran::semantics::Symbol &sym) {
mlir::Type type = converter.genType(sym);
bool isPolymorphic = Fortran::semantics::IsPolymorphic(sym);
assert(type.isa<fir::SequenceType>() ||
(isPolymorphic && type.isa<fir::ClassType>()) &&
"must be a sequence type");
assert((type.isa<fir::SequenceType>() ||
(isPolymorphic && type.isa<fir::ClassType>())) &&
"must be a sequence type");
if (isPolymorphic)
return type;
return fir::BoxType::get(type);
Expand Down

0 comments on commit 1d61709

Please sign in to comment.