[llvm] r252550 - MachineVerifier: MI::print has no TargetMachine overload

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 9 15:59:26 PST 2015


Author: matze
Date: Mon Nov  9 17:59:25 2015
New Revision: 252550

URL: http://llvm.org/viewvc/llvm-project?rev=252550&view=rev
Log:
MachineVerifier: MI::print has no TargetMachine overload

The code was passing a target machine pointer which degraded to a true
operand to SkipOppers.

Modified:
    llvm/trunk/lib/CodeGen/MachineVerifier.cpp

Modified: llvm/trunk/lib/CodeGen/MachineVerifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineVerifier.cpp?rev=252550&r1=252549&r2=252550&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineVerifier.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineVerifier.cpp Mon Nov  9 17:59:25 2015
@@ -424,7 +424,7 @@ void MachineVerifier::report(const char
   errs() << "- instruction: ";
   if (Indexes && Indexes->hasIndex(MI))
     errs() << Indexes->getInstructionIndex(MI) << '\t';
-  MI->print(errs(), TM);
+  MI->print(errs(), /*SkipOpers=*/true);
 }
 
 void MachineVerifier::report(const char *msg,




More information about the llvm-commits mailing list