diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-11 17:22:07 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-11 17:22:07 +0000 |
commit | 87bc41833458760082d259f92d1e40a343428ceb (patch) | |
tree | f2e2fce6af207ecd97e9d5b069b91f0b01685227 /lib/Bytecode/Writer/ConstantWriter.cpp | |
parent | beff74f821b461d6934ffdbecb426335f8f1f197 (diff) |
Prepare the writer for a non-broken implementation of writing floating
point values. This will be fixed when I figure out how to do it correctly
without depending on knowing the endianess of a platform.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/ConstantWriter.cpp')
-rw-r--r-- | lib/Bytecode/Writer/ConstantWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp index 029e6cc2b5..8ea192b0a8 100644 --- a/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/lib/Bytecode/Writer/ConstantWriter.cpp @@ -176,12 +176,12 @@ void BytecodeWriter::outputConstant(const Constant *CPV) { case Type::FloatTyID: { // Floating point types... float Tmp = (float)cast<ConstantFP>(CPV)->getValue(); - output_data(&Tmp, &Tmp+1, Out); + output_float(Tmp, Out); break; } case Type::DoubleTyID: { double Tmp = cast<ConstantFP>(CPV)->getValue(); - output_data(&Tmp, &Tmp+1, Out); + output_double(Tmp, Out); break; } |