Make test more robust
Set the flags on FAdd locally rather than assuming nothing will change it from way earlier in the test. llvm-svn: 298462
This commit is contained in:
parent
aece9951e5
commit
4226a9f2b8
|
@ -245,6 +245,7 @@ TEST_F(IRBuilderTest, FastMathFlags) {
|
|||
EXPECT_FALSE(FDiv->getFastMathFlags().any());
|
||||
FDiv->setHasAllowReciprocal(true);
|
||||
FAdd->setHasAllowReciprocal(false);
|
||||
FAdd->setHasNoNaNs(true);
|
||||
FDiv->copyFastMathFlags(FAdd);
|
||||
EXPECT_TRUE(FDiv->hasNoNaNs());
|
||||
EXPECT_FALSE(FDiv->hasAllowReciprocal());
|
||||
|
|
Loading…
Reference in New Issue