[llvm] b36cb12 - Fix gcc braces warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 07:27:05 PST 2020
Author: Simon Pilgrim
Date: 2020-11-04T15:26:32Z
New Revision: b36cb12a494e13d252f611cc323156bb1cac0291
URL: https://github.com/llvm/llvm-project/commit/b36cb12a494e13d252f611cc323156bb1cac0291
DIFF: https://github.com/llvm/llvm-project/commit/b36cb12a494e13d252f611cc323156bb1cac0291.diff
LOG: 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.
Added:
Modified:
llvm/unittests/IR/ConstantRangeTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/IR/ConstantRangeTest.cpp b/llvm/unittests/IR/ConstantRangeTest.cpp
index 5e8a98e61f85..836ffff9c1b2 100644
--- a/llvm/unittests/IR/ConstantRangeTest.cpp
+++ b/llvm/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());
+ }
});
}
More information about the llvm-commits
mailing list