[llvm] r363386 - Fix not calling TargetCustom PSVs printer

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 06:26:34 PDT 2019


Author: arsenm
Date: Fri Jun 14 06:26:34 2019
New Revision: 363386

URL: http://llvm.org/viewvc/llvm-project?rev=363386&view=rev
Log:
Fix not calling TargetCustom PSVs printer

If the enum value was greater than the starting target custom value,
the custom printer wasn't called.

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

Modified: llvm/trunk/lib/CodeGen/MachineOperand.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineOperand.cpp?rev=363386&r1=363385&r2=363386&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineOperand.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineOperand.cpp Fri Jun 14 06:26:34 2019
@@ -1138,7 +1138,7 @@ void MachineMemOperand::print(raw_ostrea
       printLLVMNameWithoutPrefix(
           OS, cast<ExternalSymbolPseudoSourceValue>(PVal)->getSymbol());
       break;
-    case PseudoSourceValue::TargetCustom:
+    default:
       // FIXME: This is not necessarily the correct MIR serialization format for
       // a custom pseudo source value, but at least it allows
       // -print-machineinstrs to work on a target with custom pseudo source




More information about the llvm-commits mailing list