summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Transforms/Scalar/LoopPassManager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Transforms/Scalar/LoopPassManager.h b/llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
index 3da006f4d5c..872372a7480 100644
--- a/llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
+++ b/llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
@@ -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;
}
OpenPOWER on IntegriCloud