forked from OSchip/llvm-project
[flang] Resolve merge
Original-commit: flang-compiler/f18@44743f1fa9 Reviewed-on: https://github.com/flang-compiler/f18/pull/553 Tree-same-pre-rewrite: false
This commit is contained in:
parent
626a4cfdfc
commit
7a6dabf974
|
@ -174,7 +174,7 @@ bool DynamicType::IsTkCompatibleWith(const DynamicType &that) const {
|
|||
} else if (!derived_ || !that.derived_ ||
|
||||
!IsKindCompatible(*derived_, *that.derived_)) {
|
||||
return false; // kind params don't match
|
||||
} else if (!IsPolymorphic() && that.derived_ != nullptr) {
|
||||
} else if (!IsPolymorphic()) {
|
||||
return derived_->typeSymbol() == that.derived_->typeSymbol();
|
||||
} else {
|
||||
return IsAncestorTypeOf(derived_, that.derived_);
|
||||
|
|
Loading…
Reference in New Issue