[flang-commits] [flang] 1d61709 - [flang] fix warning after #82042
Jean Perier via flang-commits
flang-commits at lists.llvm.org
Wed Feb 28 01:15:30 PST 2024
Author: Jean Perier
Date: 2024-02-28T01:05:21-08:00
New Revision: 1d61709f7718d2dc2aee1c27d02043a748e8e6d7
URL: https://github.com/llvm/llvm-project/commit/1d61709f7718d2dc2aee1c27d02043a748e8e6d7
DIFF: https://github.com/llvm/llvm-project/commit/1d61709f7718d2dc2aee1c27d02043a748e8e6d7.diff
LOG: [flang] fix warning after #82042
Added:
Modified:
flang/lib/Lower/HostAssociations.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/HostAssociations.cpp b/flang/lib/Lower/HostAssociations.cpp
index 44cc0e74e3b52a..b9e13ccad1c929 100644
--- a/flang/lib/Lower/HostAssociations.cpp
+++ b/flang/lib/Lower/HostAssociations.cpp
@@ -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);
More information about the flang-commits
mailing list