diff options
Diffstat (limited to 'lib/Bytecode/Writer/Writer.cpp')
-rw-r--r-- | lib/Bytecode/Writer/Writer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index 127a3bac00..fdd0f3ca42 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -303,6 +303,8 @@ void BytecodeWriter::outputConstant(const Constant *CPV) { Slot = Table.getSlot((*OI)->getType()); output_typeid((unsigned)Slot); } + if (CE->isCompare()) + output_vbr((unsigned)CE->getPredicate()); return; } else if (isa<UndefValue>(CPV)) { output_vbr(1U); // 1 -> UndefValue constant. |