[llvm] r326929 - Fix a bug regarding a mis-identified file type in pdbutil.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 7 11:12:36 PST 2018
Author: zturner
Date: Wed Mar 7 11:12:36 2018
New Revision: 326929
URL: http://llvm.org/viewvc/llvm-project?rev=326929&view=rev
Log:
Fix a bug regarding a mis-identified file type in pdbutil.
Modified:
llvm/trunk/tools/llvm-pdbutil/InputFile.cpp
Modified: llvm/trunk/tools/llvm-pdbutil/InputFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbutil/InputFile.cpp?rev=326929&r1=326928&r2=326929&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbutil/InputFile.cpp (original)
+++ llvm/trunk/tools/llvm-pdbutil/InputFile.cpp Wed Mar 7 11:12:36 2018
@@ -263,7 +263,7 @@ Expected<InputFile> InputFile::open(Stri
return std::move(IF);
}
- if (Magic == file_magic::unknown) {
+ if (Magic == file_magic::pdb) {
std::unique_ptr<IPDBSession> Session;
if (auto Err = loadDataForPDB(PDB_ReaderType::Native, Path, Session))
return std::move(Err);
More information about the llvm-commits
mailing list