Fix build error with clang and gcc.

llvm-svn: 304589
This commit is contained in:
Zachary Turner
2017-06-02 20:00:10 +00:00
parent 92dcdda623
commit 4bedb5fd00

View File

@@ -261,7 +261,7 @@ std::unique_ptr<DebugSubsection> YAMLLinesSubsection::toCodeViewSubsection(
}
}
}
return Result;
return llvm::cast<DebugSubsection>(std::move(Result));
}
std::unique_ptr<DebugSubsection>
@@ -282,7 +282,7 @@ YAMLInlineeLinesSubsection::toCodeViewSubsection(
Result->addExtraFile(EF);
}
}
return Result;
return llvm::cast<DebugSubsection>(std::move(Result));
}
static Expected<SourceFileChecksumEntry>