Permalink
Browse files

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
  • Loading branch information...
1 parent 0a29cb0 commit f65dc6e347492407fc7792a621849ac2ecd6801c Tim Northover committed Jan 22, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 tools/llvm-stress/llvm-stress.cpp
@@ -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));

0 comments on commit f65dc6e

Please sign in to comment.