diff options
Diffstat (limited to 'lib/Bytecode/Writer/ConstantWriter.cpp')
-rw-r--r-- | lib/Bytecode/Writer/ConstantWriter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp index 24ceaecf2e..dde47d52b1 100644 --- a/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/lib/Bytecode/Writer/ConstantWriter.cpp @@ -141,6 +141,11 @@ bool BytecodeWriter::outputConstant(const ConstPoolVal *CPV) { break; } + case Type::PointerTyID: { + output_vbr((unsigned)0, Out); + break; + } + case Type::FloatTyID: { // Floating point types... float Tmp = (float)((const ConstPoolFP*)CPV)->getValue(); output_data(&Tmp, &Tmp+1, Out); |