Skip to content

Commit fae11ab

Browse files
[flang] Fix a warning
This patch fixes: flang/lib/Semantics/resolve-directives.cpp:899:29: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
1 parent 1c3f7f1 commit fae11ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Semantics/resolve-directives.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ void AccAttributeVisitor::AddRoutineInfoToSymbol(
896896
std::string str{std::get<std::string>(charConst->t)};
897897
std::stringstream bindName;
898898
bindName << "\"" << str << "\"";
899-
info.set_bindName(std::move(bindName.str()));
899+
info.set_bindName(bindName.str());
900900
}
901901
}
902902
}

0 commit comments

Comments
 (0)