We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a6e6f commit 30089b1Copy full SHA for 30089b1
llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
@@ -1014,10 +1014,8 @@ void DWARFVerifier::verifyDebugLineRows() {
1014
DILineInfoSpecifier::FileLineInfoKind::AbsoluteFilePath, FullPath);
1015
assert(HasFullPath && "Invalid index?");
1016
(void)HasFullPath;
1017
- auto It = FullPathMap.find(FullPath);
1018
- if (It == FullPathMap.end())
1019
- FullPathMap[FullPath] = FileIndex;
1020
- else if (It->second != FileIndex && DumpOpts.Verbose) {
+ auto [It, Inserted] = FullPathMap.try_emplace(FullPath, FileIndex);
+ if (!Inserted && It->second != FileIndex && DumpOpts.Verbose) {
1021
warn() << ".debug_line["
1022
<< format("0x%08" PRIx64,
1023
*toSectionOffset(Die.find(DW_AT_stmt_list)))
0 commit comments