Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
Fix missed out llvm-stress after APFloat change.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173141 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Tim Northover authored and Tim Northover committed Jan 22, 2013
1 parent 0a29cb0 commit f65dc6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/llvm-stress/llvm-stress.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -379,9 +379,7 @@ struct ConstModifier: public Modifier {
RandomBits[i] = Ran->Rand64(); RandomBits[i] = Ran->Rand64();


APInt RandomInt(Ty->getPrimitiveSizeInBits(), makeArrayRef(RandomBits)); APInt RandomInt(Ty->getPrimitiveSizeInBits(), makeArrayRef(RandomBits));

APFloat RandomFloat(Ty->getFltSemantics(), RandomInt);
bool isIEEE = !Ty->isX86_FP80Ty() && !Ty->isPPC_FP128Ty();
APFloat RandomFloat(RandomInt, isIEEE);


if (Ran->Rand() & 1) if (Ran->Rand() & 1)
return PT->push_back(ConstantFP::getNullValue(Ty)); return PT->push_back(ConstantFP::getNullValue(Ty));
Expand Down

0 comments on commit f65dc6e

Please sign in to comment.