From afe668e17dc3bc865c9115b116b99ec83b1f225c Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 4 Nov 2020 14:20:19 +0000 Subject: [PATCH] Fix gcc braces warning. NFCI. gcc warns that the EXPECT_TRUE macro isn't surrounded by if() {} - we already do this in other cases in the file. --- unittests/IR/ConstantRangeTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unittests/IR/ConstantRangeTest.cpp b/unittests/IR/ConstantRangeTest.cpp index 5e8a98e61f8..836ffff9c1b 100644 --- a/unittests/IR/ConstantRangeTest.cpp +++ b/unittests/IR/ConstantRangeTest.cpp @@ -152,8 +152,9 @@ static void TestUnsignedBinOpExhaustive(Fn1 RangeFn, Fn2 IntFn, } EXPECT_TRUE(CR.contains(Exact)); - if (Exact.isEmptySet()) + if (Exact.isEmptySet()) { EXPECT_TRUE(CR.isEmptySet()); + } }); }