mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-28 22:00:30 +00:00
[llvm-pdbutil] FunctionDumper::dump(PDBSymbolTypeFunctionArg) - fix null dereference warning
Reported in https://www.viva64.com/en/b/0629/ llvm-svn: 359488
This commit is contained in:
parent
04628a79a1
commit
8417364068
@ -228,9 +228,9 @@ void FunctionDumper::dump(const PDBSymbolTypeFunctionArg &Symbol) {
|
||||
uint32_t TypeId = Symbol.getTypeId();
|
||||
auto Type = Symbol.getSession().getSymbolById(TypeId);
|
||||
if (Type)
|
||||
Printer << "<unknown-type>";
|
||||
else
|
||||
Type->dump(*this);
|
||||
else
|
||||
Printer << "<unknown-type>";
|
||||
}
|
||||
|
||||
void FunctionDumper::dump(const PDBSymbolTypeTypedef &Symbol) {
|
||||
|
Loading…
Reference in New Issue
Block a user