From 5a97a57f24a9167c258b273ed1510e651652ecf5 Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Wed, 16 Oct 2019 23:09:56 +0000 Subject: [PATCH] [NFC] Fix unused var in release builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375053 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopUnswitch.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index 6749cda245d..b410df0c5f6 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -1616,6 +1616,7 @@ void LoopUnswitch::SimplifyCode(std::vector &Worklist, Loop *L) { // If BI's parent is the only pred of the successor, fold the two blocks // together. BasicBlock *Pred = BI->getParent(); + (void)Pred; BasicBlock *Succ = BI->getSuccessor(0); BasicBlock *SinglePred = Succ->getSinglePredecessor(); if (!SinglePred) continue; // Nothing to do. -- 2.11.4.GIT