Fix missed out llvm-stress after APFloat change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173141 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tim Northover 2013-01-22 10:18:26 +00:00
parent 0a29cb0454
commit f65dc6e347

View File

@ -379,9 +379,7 @@ struct ConstModifier: public Modifier {
RandomBits[i] = Ran->Rand64();
APInt RandomInt(Ty->getPrimitiveSizeInBits(), makeArrayRef(RandomBits));
bool isIEEE = !Ty->isX86_FP80Ty() && !Ty->isPPC_FP128Ty();
APFloat RandomFloat(RandomInt, isIEEE);
APFloat RandomFloat(Ty->getFltSemantics(), RandomInt);
if (Ran->Rand() & 1)
return PT->push_back(ConstantFP::getNullValue(Ty));