From efbf6a8cda87abb55b758e57f8a550035492c8d5 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 2 Jun 2017 21:00:22 +0000 Subject: [PATCH] Fix build error on gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304595 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ObjectYAML/CodeViewYAMLDebugSections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp b/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp index a85dcf97cd4..21d29835624 100644 --- a/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp +++ b/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp @@ -397,7 +397,7 @@ llvm::CodeViewYAML::convertSubsectionList( DebugStringTableSubsection &Strings) { std::vector> Result; if (Subsections.empty()) - return Result; + return std::move(Result); auto Checksums = findChecksums(Subsections); if (!Checksums) -- 2.50.1