Fix a bug regarding a mis-identified file type in pdbutil.

llvm-svn: 326929
This commit is contained in:
Zachary Turner 2018-03-07 19:12:36 +00:00
parent 1dfcc393d2
commit d116a75d15

View File

@ -263,7 +263,7 @@ Expected<InputFile> InputFile::open(StringRef Path) {
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);