forked from OSchip/llvm-project
[flang] Address review comment
Original-commit: flang-compiler/f18@134190f75e Reviewed-on: https://github.com/flang-compiler/f18/pull/741
This commit is contained in:
parent
f13cf9f0ed
commit
4fde74a1c8
|
@ -187,8 +187,8 @@ void GenericDetails::CopyFrom(const GenericDetails &from) {
|
|||
derivedType_ = from.derivedType_;
|
||||
}
|
||||
for (const Symbol *symbol : from.specificProcs_) {
|
||||
auto it{std::find(specificProcs_.begin(), specificProcs_.end(), symbol)};
|
||||
if (it == specificProcs_.end()) {
|
||||
if (std::find(specificProcs_.begin(), specificProcs_.end(), symbol) ==
|
||||
specificProcs_.end()) {
|
||||
specificProcs_.push_back(symbol);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue