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:
f147a8d
)
fix off-by-one computing size for section abbrevs
author
Chris Lattner
<sabre@nondot.org>
Tue, 24 Apr 2007 03:29:47 +0000
(
03:29
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 24 Apr 2007 03:29:47 +0000
(
03:29
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36388
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Writer/BitcodeWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Writer/BitcodeWriter.cpp
b/lib/Bitcode/Writer/BitcodeWriter.cpp
index
b229a76
..
ea314f6
100644
(file)
--- a/
lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/
lib/Bitcode/Writer/BitcodeWriter.cpp
@@
-220,7
+220,7
@@
static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE,
Abbv->Add(BitCodeAbbrevOp(0));
else
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::FixedWidth,
- Log2_32_Ceil(SectionMap.size())));
+ Log2_32_Ceil(SectionMap.size()
+1
)));
// Don't bother emitting vis + thread local.
SimpleGVarAbbrev = Stream.EmitAbbrev(Abbv);
}