OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c73632
)
DebugInfo: Revise r185189 to avoid subtle 'unsigned += bool'
author
David Blaikie
<dblaikie@gmail.com>
Fri, 28 Jun 2013 18:55:13 +0000
(18:55 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Fri, 28 Jun 2013 18:55:13 +0000
(18:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185190
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index
c57cf31
..
a954eae
100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@
-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;
}