[llvm] r367499 - Fix a release-only build warning triggered by rL367485
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 31 18:16:08 PDT 2019
Author: reames
Date: Wed Jul 31 18:16:08 2019
New Revision: 367499
URL: http://llvm.org/viewvc/llvm-project?rev=367499&view=rev
Log:
Fix a release-only build warning triggered by rL367485
Modified:
llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=367499&r1=367498&r2=367499&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Wed Jul 31 18:16:08 2019
@@ -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");
More information about the llvm-commits
mailing list