mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-02 10:33:53 +00:00
DebugInfo: Revise r185189 to avoid subtle 'unsigned += bool'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185190 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1c736322a2
commit
1ca79907ef
@ -250,7 +250,8 @@ unsigned DwarfUnits::getStringPoolIndex(StringRef Str) {
|
||||
unsigned DwarfUnits::getAddrPoolIndex(const MCSymbol *Sym) {
|
||||
std::pair<DenseMap<const MCSymbol *, unsigned>::iterator, bool> P =
|
||||
AddressPool.insert(std::make_pair(Sym, NextAddrPoolNumber));
|
||||
NextAddrPoolNumber += P.second;
|
||||
if (P.second)
|
||||
++NextAddrPoolNumber;
|
||||
return P.first->second;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user