summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-06-14 13:26:34 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-06-14 13:26:34 +0000
commit3062e87a1e563c01fa7cfffc2eb7bbc1c828a80a (patch)
tree69bf9d282fef0d4cfa9ea717c796759697319be0 /llvm/lib/CodeGen/MachineOperand.cpp
parentd3c84e671974f2cad4e2d680c7eada9291b777ad (diff)
downloadbcm5719-llvm-3062e87a1e563c01fa7cfffc2eb7bbc1c828a80a.tar.gz
bcm5719-llvm-3062e87a1e563c01fa7cfffc2eb7bbc1c828a80a.zip
Fix not calling TargetCustom PSVs printer
If the enum value was greater than the starting target custom value, the custom printer wasn't called. llvm-svn: 363386
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineOperand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp
index 9458745733f..5765415102c 100644
--- a/llvm/lib/CodeGen/MachineOperand.cpp
+++ b/llvm/lib/CodeGen/MachineOperand.cpp
@@ -1138,7 +1138,7 @@ void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
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
OpenPOWER on IntegriCloud