[llvm] r260722 - Remove unused variable

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 12:33:51 PST 2016


Author: majnemer
Date: Fri Feb 12 14:33:51 2016
New Revision: 260722

URL: http://llvm.org/viewvc/llvm-project?rev=260722&view=rev
Log:
Remove unused variable

Modified:
    llvm/trunk/lib/Transforms/Scalar/GVN.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=260722&r1=260721&r2=260722&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Fri Feb 12 14:33:51 2016
@@ -1961,7 +1961,6 @@ bool GVN::processLoad(LoadInst *L) {
 
   // ... to a pointer that has been loaded from before...
   MemDepResult Dep = MD->getDependency(L);
-  const DataLayout &DL = L->getModule()->getDataLayout();
 
   // If it is defined in another block, try harder.
   if (Dep.isNonLocal())




More information about the llvm-commits mailing list