[llvm] r375053 - [NFC] Fix unused var in release builds
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 16 16:09:56 PDT 2019
Author: rupprecht
Date: Wed Oct 16 16:09:56 2019
New Revision: 375053
URL: http://llvm.org/viewvc/llvm-project?rev=375053&view=rev
Log:
[NFC] Fix unused var in release builds
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp?rev=375053&r1=375052&r2=375053&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp Wed Oct 16 16:09:56 2019
@@ -1616,6 +1616,7 @@ void LoopUnswitch::SimplifyCode(std::vec
// 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.
More information about the llvm-commits
mailing list