mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-16 08:29:08 +00:00
Remove a bunch of warnings from the CBE generated C code
llvm-svn: 8455
This commit is contained in:
parent
49d7564882
commit
f6bd477804
@ -869,12 +869,12 @@ void CWriter::printFunction(Function *F) {
|
||||
if (FPC->getType() == Type::DoubleTy)
|
||||
Out << " const ConstantDoubleTy FloatConstant" << FPCounter++
|
||||
<< " = 0x" << std::hex << *(unsigned long long*)&Val << std::dec
|
||||
<< "; /* " << Val << " */\n";
|
||||
<< "ULL; /* " << Val << " */\n";
|
||||
else if (FPC->getType() == Type::FloatTy) {
|
||||
float fVal = Val;
|
||||
Out << " const ConstantFloatTy FloatConstant" << FPCounter++
|
||||
<< " = 0x" << std::hex << *(unsigned*)&fVal << std::dec
|
||||
<< "; /* " << Val << " */\n";
|
||||
<< "U; /* " << Val << " */\n";
|
||||
} else
|
||||
assert(0 && "Unknown float type!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user