[llvm] r333018 - Delete unused variable from r333015.

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Tue May 22 12:38:07 PDT 2018


Author: efriedma
Date: Tue May 22 12:38:07 2018
New Revision: 333018

URL: http://llvm.org/viewvc/llvm-project?rev=333018&view=rev
Log:
Delete unused variable from r333015.

(The assertion suppressed the unused variable warning on
Release+Asserts builds, so I didn't notice.)


Modified:
    llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp?rev=333018&r1=333017&r2=333018&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Tue May 22 12:38:07 2018
@@ -5126,9 +5126,6 @@ AArch64InstrInfo::getOutliningType(Machi
   // We should be able to compute the memory usage based on the IR calling
   // convention, even if we can't see the definition.
   if (MI.isCall()) {
-    const Module *M = MF->getFunction().getParent();
-    assert(M && "No module?");
-
     // Get the function associated with the call. Look at each operand and find
     // the one that represents the callee and get its name.
     const Function *Callee = nullptr;




More information about the llvm-commits mailing list