aboutsummaryrefslogtreecommitdiff
path: root/lib/Bitcode
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Writer/Serialize.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Bitcode/Writer/Serialize.cpp b/lib/Bitcode/Writer/Serialize.cpp
index f25a1542d3..8e3bb1b1aa 100644
--- a/lib/Bitcode/Writer/Serialize.cpp
+++ b/lib/Bitcode/Writer/Serialize.cpp
@@ -29,7 +29,7 @@ Serializer::~Serializer() {
while (BlockLevel > 0)
Stream.ExitBlock();
-
+
Stream.FlushToWord();
}
@@ -40,7 +40,7 @@ void Serializer::EmitRecord() {
}
void Serializer::EnterBlock(unsigned BlockID,unsigned CodeLen) {
- Flush();
+ FlushRecord();
Stream.EnterSubblock(BlockID,CodeLen);
++BlockLevel;
}
@@ -48,7 +48,7 @@ void Serializer::EnterBlock(unsigned BlockID,unsigned CodeLen) {
void Serializer::ExitBlock() {
assert (BlockLevel > 0);
--BlockLevel;
- Flush();
+ FlushRecord();
Stream.ExitBlock();
}