[llvm] r362610 - [LoopInfo] Fix unused variable warning. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 07:43:58 PDT 2019
Author: d0k
Date: Wed Jun 5 07:43:58 2019
New Revision: 362610
URL: http://llvm.org/viewvc/llvm-project?rev=362610&view=rev
Log:
[LoopInfo] Fix unused variable warning. NFC.
Modified:
llvm/trunk/lib/Analysis/LoopInfo.cpp
Modified: llvm/trunk/lib/Analysis/LoopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopInfo.cpp?rev=362610&r1=362609&r2=362610&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LoopInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LoopInfo.cpp Wed Jun 5 07:43:58 2019
@@ -293,8 +293,7 @@ PHINode *Loop::getInductionVariable(Scal
BasicBlock *Header = getHeader();
assert(Header && "Expected a valid loop header");
- BasicBlock *Latch = getLoopLatch();
- assert(Latch && "Expected a valid loop latch");
+ assert(getLoopLatch() && "Expected a valid loop latch");
ICmpInst *CmpInst = getLatchCmpInst(*this);
if (!CmpInst)
return nullptr;
More information about the llvm-commits
mailing list