]> granicus.if.org Git - llvm/commitdiff
[CallSiteSplitting] Silence GCC's -Wparentheses. NFCI.
authorDavide Italiano <davide@freebsd.org>
Fri, 3 Nov 2017 23:03:38 +0000 (23:03 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 3 Nov 2017 23:03:38 +0000 (23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317385 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/CallSiteSplitting.cpp

index 2224cb2eb6231e9eb1972caffca00338bc87f25a..5e6bfc73ca5db1c4a90df9f2ff53b3eddd023ad9 100644 (file)
@@ -126,8 +126,8 @@ static bool createCallSitesOnOrPredicatedArgument(
       Instruction *&CallUntakenFromHeader =
           IsCSInTakenPath ? NewCSTakenFromNextCond : NewCSTakenFromHeader;
 
-      assert(Pred == ICmpInst::ICMP_EQ ||
-             Pred == ICmpInst::ICMP_NE &&
+      assert((Pred == ICmpInst::ICMP_EQ ||
+             Pred == ICmpInst::ICMP_NE) &&
                  "Unexpected predicate in an OR condition");
 
       // Set the constant value for agruments in the call predicated based on