aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-06-02 20:00:10 +0000
committerZachary Turner <zturner@google.com>2017-06-02 20:00:10 +0000
commit4bedb5fd00eb271d62571eadcd6042ea30538c9e (patch)
tree79494cf71a8ae315fa48d33f018d0509c715e593 /llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
parent92dcdda623326bfd97a5833544e396fa739e2a29 (diff)
downloadllvm-4bedb5fd00eb271d62571eadcd6042ea30538c9e.zip
llvm-4bedb5fd00eb271d62571eadcd6042ea30538c9e.tar.gz
llvm-4bedb5fd00eb271d62571eadcd6042ea30538c9e.tar.bz2
Fix build error with clang and gcc.
llvm-svn: 304589
Diffstat (limited to 'llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp')
-rw-r--r--llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp b/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
index 1d62d1b..a85dcf9 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>