diff options
author | Michael Ilseman <milseman@apple.com> | 2012-12-03 21:29:36 +0000 |
---|---|---|
committer | Michael Ilseman <milseman@apple.com> | 2012-12-03 21:29:36 +0000 |
commit | e26658d372fb8fada07777101c8bf1caaad375b7 (patch) | |
tree | 07d0ef7465dcf78f864a5ef7b6b95f5554474fc1 /llvm/lib/Bitcode | |
parent | 811209be115d9d039d47aec0135f0629831cd53e (diff) | |
download | bcm5719-llvm-e26658d372fb8fada07777101c8bf1caaad375b7.tar.gz bcm5719-llvm-e26658d372fb8fada07777101c8bf1caaad375b7.zip |
Since this SmallVector immediately grows on the next line, don't waste stack space. SmallVector is still needed due to existing APIs growing their arguments
llvm-svn: 169157
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index bbc9c834ec2..2ea9cbd6f44 100644 --- 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 |