Tweak how ConstantFP80Ty constants are output

so that gcc doesn't warn about them.

llvm-svn: 51529
This commit is contained in:
Duncan Sands 2008-05-24 01:00:52 +00:00
parent 04c3299652
commit 91dea27d4c
1 changed files with 1 additions and 1 deletions

View File

@ -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();