aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-06-02 21:00:22 +0000
committerZachary Turner <zturner@google.com>2017-06-02 21:00:22 +0000
commit64726f2269c54f5e6cbe93e7a329f645ecf87657 (patch)
tree251eda403a4d4ea3fd6f0c8b274388f86baa2773 /llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
parent2960d41e68f8a53548d8d003dc43390704cc69e3 (diff)
downloadllvm-64726f2269c54f5e6cbe93e7a329f645ecf87657.zip
llvm-64726f2269c54f5e6cbe93e7a329f645ecf87657.tar.gz
llvm-64726f2269c54f5e6cbe93e7a329f645ecf87657.tar.bz2
Fix build error on gcc.
llvm-svn: 304595
Diffstat (limited to 'llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp')
-rw-r--r--llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp b/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
index a85dcf9..21d29835 100644
--- a/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
+++ b/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
@@ -397,7 +397,7 @@ llvm::CodeViewYAML::convertSubsectionList(
DebugStringTableSubsection &Strings) {
std::vector<std::unique_ptr<DebugSubsection>> Result;
if (Subsections.empty())
- return Result;
+ return std::move(Result);
auto Checksums = findChecksums(Subsections);
if (!Checksums)