Fix build error on gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zachary Turner 2017-06-02 21:00:22 +00:00
parent 2961ee384e
commit efbf6a8cda

View File

@ -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)