summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Bytecode/Writer/Writer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp
index 2550d10..7d578f9 100644
--- a/lib/Bytecode/Writer/Writer.cpp
+++ b/lib/Bytecode/Writer/Writer.cpp
@@ -942,12 +942,12 @@ void BytecodeWriter::outputInstructions(const Function *F) {
}
void BytecodeWriter::outputFunction(const Function *F) {
- // If this is an external function, there is nothing else to emit!
- if (F->isExternal()) return;
-
BytecodeBlock FunctionBlock(BytecodeFormat::FunctionBlockID, *this);
output_vbr(getEncodedLinkage(F));
+ // If this is an external function, there is nothing else to emit!
+ if (F->isExternal()) return;
+
// Get slot information about the function...
Table.incorporateFunction(F);