[llvm] r293453 - [MemorySSA] Correct an assertion surrounding with parentheses.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 29 19:16:44 PST 2017


Author: davide
Date: Sun Jan 29 21:16:43 2017
New Revision: 293453

URL: http://llvm.org/viewvc/llvm-project?rev=293453&view=rev
Log:
[MemorySSA] Correct an assertion surrounding with parentheses.

Modified:
    llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp

Modified: llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp?rev=293453&r1=293452&r2=293453&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp Sun Jan 29 21:16:43 2017
@@ -1943,9 +1943,8 @@ void MemorySSA::verifyOrdering(Function
     assert(AL->size() == ActualAccesses.size() &&
            "We don't have the same number of accesses in the block as on the "
            "access list");
-    assert(DL ||
-           ActualDefs.size() == 0 &&
-               "Either we should have a defs list, or we should have no defs");
+    assert((DL || ActualDefs.size() == 0) &&
+           "Either we should have a defs list, or we should have no defs");
     assert((!DL || DL->size() == ActualDefs.size()) &&
            "We don't have the same number of defs in the block as on the "
            "def list");




More information about the llvm-commits mailing list