aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2020-06-05 13:56:51 -0700
committerReid Kleckner <rnk@google.com>2020-06-05 16:29:05 -0700
commitb5289656b865d2a73cf90819e20a96fb8414ab0b (patch)
tree439ae24fa578ea772532e6e2f25388bce7705159 /llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
parente03a135be8cf912fbfeac11c28d0132b52f1fb07 (diff)
downloadllvm-b5289656b865d2a73cf90819e20a96fb8414ab0b.zip
llvm-b5289656b865d2a73cf90819e20a96fb8414ab0b.tar.gz
llvm-b5289656b865d2a73cf90819e20a96fb8414ab0b.tar.bz2
Migrate the rest of COFFObjectFile to Error
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
index 043d236..dcae2e9 100644
--- a/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
@@ -133,8 +133,8 @@ static Expected<std::string> getPdbPathFromExe(StringRef ExePath) {
StringRef PdbPath;
const llvm::codeview::DebugInfo *PdbInfo = nullptr;
- if (auto EC = ObjFile->getDebugPDBInfo(PdbInfo, PdbPath))
- return make_error<RawError>(EC);
+ if (Error E = ObjFile->getDebugPDBInfo(PdbInfo, PdbPath))
+ return std::move(E);
return std::string(PdbPath);
}