From d116a75d158fbb83073d55dacfab88d18ffeb14b Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Wed, 7 Mar 2018 19:12:36 +0000 Subject: [PATCH] Fix a bug regarding a mis-identified file type in pdbutil. llvm-svn: 326929 --- tools/llvm-pdbutil/InputFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-pdbutil/InputFile.cpp b/tools/llvm-pdbutil/InputFile.cpp index 8b05381174d..28747824d3f 100644 --- a/tools/llvm-pdbutil/InputFile.cpp +++ b/tools/llvm-pdbutil/InputFile.cpp @@ -263,7 +263,7 @@ Expected InputFile::open(StringRef Path) { return std::move(IF); } - if (Magic == file_magic::unknown) { + if (Magic == file_magic::pdb) { std::unique_ptr Session; if (auto Err = loadDataForPDB(PDB_ReaderType::Native, Path, Session)) return std::move(Err);