Revert previous change to IR.

llvm-svn: 41769
This commit is contained in:
Dale Johannesen
2007-09-07 18:31:50 +00:00
parent 1de0c86717
commit b6d795c1fc
2 changed files with 4 additions and 5 deletions

View File

@@ -626,7 +626,7 @@ bool BitcodeReader::ParseConstants() {
if (Record.empty())
return Error("Invalid FLOAT record");
if (CurTy == Type::FloatTy)
V = ConstantFP::get(CurTy, APFloat((float)BitsToDouble(Record[0])));
V = ConstantFP::get(CurTy, APFloat(BitsToFloat(Record[0])));
else if (CurTy == Type::DoubleTy)
V = ConstantFP::get(CurTy, APFloat(BitsToDouble(Record[0])));
// FIXME: Make long double constants work. BitsToDouble does not make it.