summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index f738385adcc..7946fc2676f 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -568,7 +568,7 @@ void MIPrinter::print(const MachineInstr &MI) {
assert(MI.getType().isValid() && "Generic instructions must have a type");
OS << " { ";
for (unsigned i = 0; i < MI.getNumTypes(); ++i) {
- MI.getType().print(OS);
+ MI.getType(i).print(OS);
if (i + 1 != MI.getNumTypes())
OS << ", ";
}
OpenPOWER on IntegriCloud