diff options
| author | Zachary Turner <zturner@google.com> | 2017-06-02 20:00:10 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-06-02 20:00:10 +0000 |
| commit | 4bedb5fd00eb271d62571eadcd6042ea30538c9e (patch) | |
| tree | 79494cf71a8ae315fa48d33f018d0509c715e593 /llvm | |
| parent | 92dcdda623326bfd97a5833544e396fa739e2a29 (diff) | |
| download | bcm5719-llvm-4bedb5fd00eb271d62571eadcd6042ea30538c9e.tar.gz bcm5719-llvm-4bedb5fd00eb271d62571eadcd6042ea30538c9e.zip | |
Fix build error with clang and gcc.
llvm-svn: 304589
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp b/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp index 1d62d1b2621..a85dcf97cd4 100644 --- a/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp +++ b/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp @@ -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> |

