Fix NDEBUG build after https://reviews.llvm.org/D93005.
authorChristian Sigg <csigg@google.com>
Thu, 17 Dec 2020 19:35:48 +0000 (20:35 +0100)
committerChristian Sigg <csigg@google.com>
Thu, 17 Dec 2020 19:38:21 +0000 (20:38 +0100)
Differential Revision: https://reviews.llvm.org/D93480

mlir/lib/Target/LLVMIR/ModuleTranslation.cpp

index d9094f8..8c65050 100644 (file)
@@ -327,6 +327,7 @@ static Value getPHISourceValue(Block *current, Block *pred,
   assert(std::adjacent_find(successors.begin(), successors.end()) ==
              successors.end() &&
          "successors with arguments in LLVM branches must be different blocks");
+  (void)successors;
 
   // For instructions that branch based on a condition value, we need to take
   // the operands for the branch that was taken.