[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:
Tim Keith 2019-09-13 14:39:40 -07:00
parent f13cf9f0ed
commit 4fde74a1c8
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}