From 79c27c9464f1605a56d31d2c49d143117ad434a2 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Thu, 1 Aug 2019 01:16:08 +0000 Subject: Fix a release-only build warning triggered by rL367485 llvm-svn: 367499 --- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Transforms/Scalar') diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 4ccfba94e78..5d1bb6b9390 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -2758,7 +2758,10 @@ bool IndVarSimplify::run(Loop *L) { // transform them to use integer recurrences. Changed |= rewriteNonIntegerIVs(L); +#ifndef NDEBUG + // Used below for a consistency check only const SCEV *BackedgeTakenCount = SE->getBackedgeTakenCount(L); +#endif // Create a rewriter object which we'll use to transform the code with. SCEVExpander Rewriter(*SE, DL, "indvars"); -- cgit v1.2.3