diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-04 05:23:49 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-04 05:23:49 +0000 |
commit | 595b477915ad972b19db5a9ce8de5d31f5aa6410 (patch) | |
tree | cce7d742ba417a35c583f9769530e3e924a5ae1b /lib/Bytecode/Writer/Writer.cpp | |
parent | 763ed5e4ac4e896d66ad73b6df5b6fcf91ea58d3 (diff) |
For PR950: Implement read/write of ICmp and FCmp constant expressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32172 91177308-0d34-0410-b5e6-96231b3b80d8
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. |