[Lldb-commits] [lldb] f5be71b - Attempt to fix a compile error reported with older compilers and libstdc++

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 10 10:34:54 PDT 2020


Author: Adrian Prantl
Date: 2020-04-10T10:34:44-07:00
New Revision: f5be71b44500b18d636b1f540422dda4012ac192

URL: https://github.com/llvm/llvm-project/commit/f5be71b44500b18d636b1f540422dda4012ac192
DIFF: https://github.com/llvm/llvm-project/commit/f5be71b44500b18d636b1f540422dda4012ac192.diff

LOG: Attempt to fix a compile error reported with older compilers and libstdc++

Added: 
    

Modified: 
    lldb/source/Utility/XcodeSDK.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Utility/XcodeSDK.cpp b/lldb/source/Utility/XcodeSDK.cpp
index f2403f10de55..7ad0090f85e2 100644
--- a/lldb/source/Utility/XcodeSDK.cpp
+++ b/lldb/source/Utility/XcodeSDK.cpp
@@ -69,7 +69,8 @@ std::tuple<XcodeSDK::Type, llvm::VersionTuple> XcodeSDK::Parse() const {
   llvm::StringRef input(m_name);
   XcodeSDK::Type sdk = ParseSDKName(input);
   llvm::VersionTuple version = ParseSDKVersion(input);
-  return {sdk, version};
+  return std::make_tuple<XcodeSDK::Type, llvm::VersionTuple>(
+      std::move(sdk), std::move(version));
 }
 
 llvm::VersionTuple XcodeSDK::GetVersion() const {


        


More information about the lldb-commits mailing list