aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86PeepholeOpt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/X86/X86PeepholeOpt.cpp')
-rw-r--r--lib/Target/X86/X86PeepholeOpt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/X86/X86PeepholeOpt.cpp b/lib/Target/X86/X86PeepholeOpt.cpp
index 1ceef0e..1640862 100644
--- a/lib/Target/X86/X86PeepholeOpt.cpp
+++ b/lib/Target/X86/X86PeepholeOpt.cpp
@@ -149,7 +149,8 @@ bool PH::PeepholeOptimize(MachineBasicBlock &MBB,
}
unsigned R0 = MI->getOperand(0).getReg();
I = MBB.insert(MBB.erase(I),
- BuildMI(Opcode, 1, R0, MOTy::UseAndDef).addZImm((char)Val));
+ BuildMI(Opcode, 1, R0, MachineOperand::UseAndDef)
+ .addZImm((char)Val));
return true;
}
}