From c0160aa0c7a64174db78f685e2b4647e8c23f507 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 2 Jun 2017 20:00:10 +0000 Subject: [PATCH] Fix build error with clang and gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304589 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ObjectYAML/CodeViewYAMLDebugSections.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp b/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp index 1d62d1b2621..a85dcf97cd4 100644 --- a/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp +++ b/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp @@ -261,7 +261,7 @@ std::unique_ptr YAMLLinesSubsection::toCodeViewSubsection( } } } - return Result; + return llvm::cast(std::move(Result)); } std::unique_ptr @@ -282,7 +282,7 @@ YAMLInlineeLinesSubsection::toCodeViewSubsection( Result->addExtraFile(EF); } } - return Result; + return llvm::cast(std::move(Result)); } static Expected -- 2.50.1