[clang] 4142a64 - [Clang] Fix compilation with GCC 7.5

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 28 03:07:03 PST 2023


Author: Corentin Jabot
Date: 2023-11-28T12:05:34+01:00
New Revision: 4142a64ae3ca4856e6a5ffae9e40014ef5cf9db5

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

LOG: [Clang] Fix compilation with GCC 7.5

Fixes #73628

Added: 
    

Modified: 
    clang/lib/Sema/SemaDeclCXX.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index 213e1f0a728c204..7385eac48d8c895 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -17299,7 +17299,7 @@ bool Sema::EvaluateStaticAssertMessageAsString(Expr *Message,
                                     OverloadCandidateSet::CSK_Normal);
     if (MemberLookup.empty())
       return std::nullopt;
-    return MemberLookup;
+    return std::move(MemberLookup);
   };
 
   bool SizeNotFound, DataNotFound;


        


More information about the cfe-commits mailing list