From 9932d4db0d33276a880d0bd1922555a40c08f3d2 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 11 Dec 2021 21:02:37 +0100 Subject: [PATCH] [SCEV] Fix unused variable warning (NFC) --- llvm/lib/Analysis/ScalarEvolution.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 2e2aa763..8ea448e 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -13057,11 +13057,13 @@ void ScalarEvolution::verify() const { Worklist.append(L->begin(), L->end()); } for (auto &KV : ValueExprMap) { +#ifndef NDEBUG // Check for SCEV expressions referencing invalid/deleted loops. if (auto *AR = dyn_cast(KV.second)) { assert(ValidLoops.contains(AR->getLoop()) && "AddRec references invalid loop"); } +#endif // Check that the value is also part of the reverse map. auto It = ExprValueMap.find(KV.second); -- 2.7.4