[llvm] r313780 - Pacify a gcc -Wparentheses warning

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 11:00:02 PDT 2017


Author: hans
Date: Wed Sep 20 11:00:02 2017
New Revision: 313780

URL: http://llvm.org/viewvc/llvm-project?rev=313780&view=rev
Log:
Pacify a gcc -Wparentheses warning

Modified:
    llvm/trunk/include/llvm/Transforms/Scalar/LoopPassManager.h

Modified: llvm/trunk/include/llvm/Transforms/Scalar/LoopPassManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Scalar/LoopPassManager.h?rev=313780&r1=313779&r2=313780&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Scalar/LoopPassManager.h (original)
+++ llvm/trunk/include/llvm/Transforms/Scalar/LoopPassManager.h Wed Sep 20 11:00:02 2017
@@ -166,9 +166,9 @@ public:
   /// the rest of the pass management infrastructure.
   void markLoopAsDeleted(Loop &L) {
     LAM.clear(L);
-    assert(&L == CurrentL ||
-           CurrentL->contains(&L) && "Cannot delete a loop outside of the "
-                                     "subloop tree currently being processed.");
+    assert((&L == CurrentL || CurrentL->contains(&L)) &&
+           "Cannot delete a loop outside of the "
+           "subloop tree currently being processed.");
     if (&L == CurrentL)
       SkipCurrentLoop = true;
   }




More information about the llvm-commits mailing list