[llvm] ab3da5d - Fix `-Wparentheses` warning. NFC.

Michael Liao via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 9 21:45:14 PST 2020


Author: Michael Liao
Date: 2020-02-10T00:45:02-05:00
New Revision: ab3da5dd66c0fee4f6ecbaf344c5904323ac7c7d

URL: https://github.com/llvm/llvm-project/commit/ab3da5dd66c0fee4f6ecbaf344c5904323ac7c7d
DIFF: https://github.com/llvm/llvm-project/commit/ab3da5dd66c0fee4f6ecbaf344c5904323ac7c7d.diff

LOG: Fix `-Wparentheses` warning. NFC.

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index d7b33dfeb54f..f84a1ac438fc 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -211,9 +211,9 @@ struct OpenMPOpt {
                       << RFI.Name
                       << (ReplVal ? " with an existing value\n" : "\n")
                       << "\n");
-    assert(!ReplVal || (isa<Argument>(ReplVal) &&
-                        cast<Argument>(ReplVal)->getParent() == &F) &&
-                           "Unexpected replacement value!");
+    assert((!ReplVal || (isa<Argument>(ReplVal) &&
+                         cast<Argument>(ReplVal)->getParent() == &F)) &&
+           "Unexpected replacement value!");
     if (!ReplVal) {
       for (Use *U : Uses)
         if (CallInst *CI = getCallIfRegularCall(*U, &RFI)) {


        


More information about the llvm-commits mailing list