]> granicus.if.org Git - llvm/commitdiff
Pacify a gcc -Wparentheses warning
authorHans Wennborg <hans@hanshq.net>
Wed, 20 Sep 2017 18:00:02 +0000 (18:00 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 20 Sep 2017 18:00:02 +0000 (18:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313780 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Scalar/LoopPassManager.h

index 3da006f4d5c4c5d025d098cb486d20d3c1be2626..872372a7480502bd63363e184a43bf7306e351cb 100644 (file)
@@ -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;
   }