diff options
Diffstat (limited to 'llvm/lib/Target/Alpha')
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaBranchSelector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaBranchSelector.cpp b/llvm/lib/Target/Alpha/AlphaBranchSelector.cpp index 55140e34e43..65bacb8a749 100644 --- a/llvm/lib/Target/Alpha/AlphaBranchSelector.cpp +++ b/llvm/lib/Target/Alpha/AlphaBranchSelector.cpp @@ -53,7 +53,8 @@ bool AlphaBSel::runOnMachineFunction(MachineFunction &Fn) { // 0. bc opcode // 1. reg // 2. target MBB - MBBI->setOpcode(MBBI->getOperand(0).getImm()); + const TargetInstrInfo *TII = Fn.getTarget().getInstrInfo(); + MBBI->setInstrDescriptor(TII->get(MBBI->getOperand(0).getImm())); } } } |

