diff options
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp index d0694da2d8d..0dccc8b1c17 100644 --- a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp +++ b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp @@ -627,9 +627,10 @@ std::string SymbolFilePDB::GetSourceFileNameForPDBCompiland( auto file_extension = file_spec.GetFileNameExtension(); if (pdb_lang == PDB_Lang::Cpp || pdb_lang == PDB_Lang::C) { static const char* exts[] = { "cpp", "c", "cc", "cxx" }; - if (llvm::is_contained(exts, file_extension.GetStringRef().lower())) + if (llvm::is_contained(exts, file_extension.GetStringRef().lower())) { source_file_name = file_up->getFileName(); - break; + break; + } } else if (pdb_lang == PDB_Lang::Masm && ConstString::Compare(file_extension, ConstString("ASM"), false) == 0) { |