]> granicus.if.org Git - llvm/commitdiff
Fix unused-variable warning caused by r301407.
authorHaojian Wu <hokein@google.com>
Wed, 26 Apr 2017 14:31:05 +0000 (14:31 +0000)
committerHaojian Wu <hokein@google.com>
Wed, 26 Apr 2017 14:31:05 +0000 (14:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301411 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopRotation.cpp

index 466a55dc9673862f4a0e88f30f79c4ed71fa5161..8ce96cf1b7a676f2d4033f0a3c5740e0e5bb67c5 100644 (file)
@@ -312,8 +312,6 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
   for (; PHINode *PN = dyn_cast<PHINode>(I); ++I)
     ValueMap[PN] = PN->getIncomingValueForBlock(OrigPreheader);
 
-  const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
-
   // For the rest of the instructions, either hoist to the OrigPreheader if
   // possible or create a clone in the OldPreHeader if not.
   TerminatorInst *LoopEntryBranch = OrigPreheader->getTerminator();