mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[DebugInfo] Don't dereference a dyn_cast<PDBSymbolData> result. NFCI.
The static analyzer is warning about a potential null dereference - but as we're in DataMemberLayoutItem we should be able to guarantee that the Symbol is a PDBSymbolData type, allowing us to use cast<PDBSymbolData> - and if not assert will fire for us. llvm-svn: 371933
This commit is contained in:
parent
e94e59a2ae
commit
cb12c82cda
@ -84,7 +84,7 @@ VBPtrLayoutItem::VBPtrLayoutItem(const UDTLayoutBase &Parent,
|
||||
}
|
||||
|
||||
const PDBSymbolData &DataMemberLayoutItem::getDataMember() {
|
||||
return *dyn_cast<PDBSymbolData>(Symbol);
|
||||
return *cast<PDBSymbolData>(Symbol);
|
||||
}
|
||||
|
||||
bool DataMemberLayoutItem::hasUDTLayout() const { return UdtLayout != nullptr; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user