diff options
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp b/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp index 2990ad802c4..a09ccab483c 100644 --- a/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp +++ b/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp @@ -254,8 +254,8 @@ static bool isUnsafeToMoveAcross(MachineInstr &MI, unsigned UseReg, MI.isMetaInstruction(); } -static unsigned UseReg(const MachineOperand& MO) { - return MO.isReg() ? MO.getReg() : 0; +static Register UseReg(const MachineOperand& MO) { + return MO.isReg() ? MO.getReg() : Register(); } /// isSafeToMoveTogether - Returns true if it is safe to move I1 next to I2 such |

