diff options
author | Pavel Labath <labath@google.com> | 2015-07-28 09:18:32 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2015-07-28 09:18:32 +0000 |
commit | 3a29f8b9ec905f27829b6180c10f0f41fa883f0f (patch) | |
tree | 13efc3f7b775406d65ef3b5aa43271699eb82479 /lldb/source/Core/RegularExpression.cpp | |
parent | e5b47640ee437b49313657aeee7f4e8c08bb0019 (diff) | |
download | bcm5719-llvm-3a29f8b9ec905f27829b6180c10f0f41fa883f0f.tar.gz bcm5719-llvm-3a29f8b9ec905f27829b6180c10f0f41fa883f0f.zip |
Fix warnings detected by -Wpessimizing-move
patch by Eugene Zelenko
Differential Revision: http://reviews.llvm.org/D11429
llvm-svn: 243399
Diffstat (limited to 'lldb/source/Core/RegularExpression.cpp')
-rw-r--r-- | lldb/source/Core/RegularExpression.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Core/RegularExpression.cpp b/lldb/source/Core/RegularExpression.cpp index 3f712e1b2da..767521500af 100644 --- a/lldb/source/Core/RegularExpression.cpp +++ b/lldb/source/Core/RegularExpression.cpp @@ -153,7 +153,7 @@ RegularExpression::Match::GetMatchAtIndex (const char* s, uint32_t idx, std::str llvm::StringRef match_str_ref; if (GetMatchAtIndex(s, idx, match_str_ref)) { - match_str = std::move(match_str_ref.str()); + match_str = match_str_ref.str(); return true; } return false; @@ -258,4 +258,3 @@ RegularExpression::operator < (const RegularExpression& rhs) const { return (m_re < rhs.m_re); } - |