mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 01:12:59 +00:00
SymbolRef::Type is not a bitfield and must be compared directly
Found by PVS-Studio. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285597 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a30f4b78e
commit
8d99748c3e
@ -445,7 +445,7 @@ void MachODebugMapParser::loadMainBinarySymbols(
|
||||
}
|
||||
SymbolRef::Type Type = *TypeOrErr;
|
||||
// Skip undefined and STAB entries.
|
||||
if ((Type & SymbolRef::ST_Debug) || (Type & SymbolRef::ST_Unknown))
|
||||
if ((Type == SymbolRef::ST_Debug) || (Type == SymbolRef::ST_Unknown))
|
||||
continue;
|
||||
// The only symbols of interest are the global variables. These
|
||||
// are the only ones that need to be queried because the address
|
||||
|
Loading…
Reference in New Issue
Block a user