Skip to content

Commit 0ac13af

Browse files
authored
[llvm-pdbutil] Pass filename when formatting setfile annotation (#149705)
When dumping a PDB with an inlinesite that had a ChangeFile annotation, the `Filename` wasn't passed to the format string. This hit an assertion in debug mode and silently failed in release mode.
1 parent f334ac6 commit 0ac13af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-pdbutil/MinimalSymbolDumper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ Error MinimalSymbolDumper::visitKnownRecord(CVSymbol &CVR, InlineSiteSym &IS) {
773773
else
774774
return MaybeFile.takeError();
775775
}
776-
P.format(" setfile {0} 0x{1}", utohexstr(FileOffset));
776+
P.format(" setfile {0} 0x{1}", Filename, utohexstr(FileOffset));
777777
break;
778778
}
779779

0 commit comments

Comments
 (0)