mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 08:54:59 +00:00
[COFF] Silence static analyzer null dereference warning. NFCI.
Assert that the COFFSymbolRef is correct. llvm-svn: 372757
This commit is contained in:
parent
66d4b83781
commit
4ee2d5a84e
@ -314,7 +314,10 @@ public:
|
||||
return CS16 ? CS16->Name.Offset : CS32->Name.Offset;
|
||||
}
|
||||
|
||||
uint32_t getValue() const { return CS16 ? CS16->Value : CS32->Value; }
|
||||
uint32_t getValue() const {
|
||||
assert(isSet() && "COFFSymbolRef points to nothing!");
|
||||
return CS16 ? CS16->Value : CS32->Value;
|
||||
}
|
||||
|
||||
int32_t getSectionNumber() const {
|
||||
assert(isSet() && "COFFSymbolRef points to nothing!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user