projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eafc3e
)
Since this SmallVector immediately grows on the next line, don't waste stack space...
author
Michael Ilseman
<milseman@apple.com>
Mon, 3 Dec 2012 21:29:36 +0000
(21:29 +0000)
committer
Michael Ilseman
<milseman@apple.com>
Mon, 3 Dec 2012 21:29:36 +0000
(21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169157
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 bbc9c834ec20e2c8d52ef6d17f68c64611b0543d..2ea9cbd6f446a0c590f2f5d48dfdffb541f97f85 100644
(file)
--- a/
lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/
lib/Bitcode/Writer/BitcodeWriter.cpp
@@
-1939,7
+1939,7
@@
static void EmitDarwinBCHeaderAndTrailer(SmallVectorImpl<char> &Buffer,
/// WriteBitcodeToFile - Write the specified module to the specified output
/// stream.
void llvm::WriteBitcodeToFile(const Module *M, raw_ostream &Out) {
- SmallVector<char,
1024
> Buffer;
+ SmallVector<char,
0
> Buffer;
Buffer.reserve(256*1024);
// If this is darwin or another generic macho target, reserve space for the