From: Roman Lebedev Date: Wed, 31 Jul 2019 12:26:37 +0000 (+0000) Subject: [DivRemPairs] Fixup DNDEBUG build - variable is only used in assertion X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e4e6b1fb17646374d57b7a11b09e6f060debf99;p=platform%2Fupstream%2Fllvm.git [DivRemPairs] Fixup DNDEBUG build - variable is only used in assertion llvm-svn: 367423 --- diff --git a/llvm/lib/Transforms/Scalar/DivRemPairs.cpp b/llvm/lib/Transforms/Scalar/DivRemPairs.cpp index 5dd65d0..4f53874 100644 --- a/llvm/lib/Transforms/Scalar/DivRemPairs.cpp +++ b/llvm/lib/Transforms/Scalar/DivRemPairs.cpp @@ -195,6 +195,7 @@ static bool optimizeDivRem(Function &F, const TargetTransformInfo &TTI, auto &RemInst = E.RemInst; const bool RemOriginallyWasInExpandedForm = E.isRemExpanded(); + (void)RemOriginallyWasInExpandedForm; // suppress unused variable warning if (HasDivRemOp && E.isRemExpanded()) { // The target supports div+rem but the rem is expanded.