From 58f2b765ebec45643f0b0d6737fb3dc339f75cde Mon Sep 17 00:00:00 2001 From: Christian Sigg Date: Thu, 17 Dec 2020 20:35:48 +0100 Subject: [PATCH] Fix NDEBUG build after https://reviews.llvm.org/D93005. Differential Revision: https://reviews.llvm.org/D93480 --- mlir/lib/Target/LLVMIR/ModuleTranslation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp index d9094f87..8c65050 100644 --- a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp +++ b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp @@ -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. -- 2.7.4