diff options
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp | 4 |
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); } |