projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
811209b
)
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)
llvm-svn: 169157
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index
bbc9c83
..
2ea9cbd
100644
(file)
--- a/
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/
llvm/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