diff options
| author | Davide Italiano <davide@freebsd.org> | 2015-11-07 18:15:05 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2015-11-07 18:15:05 +0000 |
| commit | a92bc3576a958909ec056010ce6c94da4590bdba (patch) | |
| tree | aeba2200df198fa455fef2e7c452aeffc02fad2a | |
| parent | 33adf230a77cf78cee5e47d8a85060867dc6d6a1 (diff) | |
| download | bcm5719-llvm-a92bc3576a958909ec056010ce6c94da4590bdba.tar.gz bcm5719-llvm-a92bc3576a958909ec056010ce6c94da4590bdba.zip | |
Fix pessimizing moves. Found by clang.
llvm-svn: 252409
| -rw-r--r-- | lldb/source/Host/common/Editline.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp index d49dc8f7e2e..2f811c9d8b1 100644 --- a/lldb/source/Host/common/Editline.cpp +++ b/lldb/source/Host/common/Editline.cpp @@ -203,7 +203,7 @@ namespace lldb_private { snprintf (history_path, sizeof (history_path), "~/%s-widehistory", m_prefix.c_str()); } - m_path = std::move (FileSpec (history_path, true).GetPath()); + m_path = FileSpec (history_path, true).GetPath(); } if (m_path.empty()) return NULL; diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp index f9a588c9709..7a2538fcbf5 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp @@ -1621,7 +1621,7 @@ PlatformDarwin::GetOSVersion (uint32_t &major, } else if (env_str.startswith(k_dyld_root_path)) { - dyld_root_path = std::move(env_str.substr(k_dyld_root_path.size()).str()); + dyld_root_path = env_str.substr(k_dyld_root_path.size()).str(); } } } |

