diff options
author | Duncan Sands <baldrick@free.fr> | 2008-05-24 01:00:52 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-05-24 01:00:52 +0000 |
commit | 5ea38a6144ae185882b87eb9bd19d785de30ef0c (patch) | |
tree | 1a372b68fc3efb0cbbf366e93dade61ce0fca4e2 /lib/Target/CBackend/CBackend.cpp | |
parent | 247580b5695b948a0eb3ddaa236c9e206a4103fe (diff) |
Tweak how ConstantFP80Ty constants are output
so that gcc doesn't warn about them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 251b9f98c0..4036d08f62 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -1823,7 +1823,7 @@ void CWriter::printFloatingPointConstants(Function &F) { Out << "static const ConstantFP80Ty FPConstant" << FPCounter++ << " = { 0x" << std::hex << ((uint16_t)p[1] | (p[0] & 0xffffffffffffLL)<<16) - << ", 0x" << (uint16_t)(p[0] >> 48) << ",0,0,0" + << "ULL, 0x" << (uint16_t)(p[0] >> 48) << ",{0,0,0}" << "}; /* Long double constant */\n" << std::dec; } else if (FPC->getType() == Type::PPC_FP128Ty) { APInt api = FPC->getValueAPF().convertToAPInt(); |