From 2eb0862ed8a824f0d02c3df6ec4e05175cf8c3f1 Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Thu, 14 Nov 2019 08:32:03 +0100 Subject: [AArch64][DebugInfo] Fix incorrect call site param value produced by MOVZXi This resolves the problem with the truncation of the immediate operand. Differential Revision: https://reviews.llvm.org/D70168 --- llvm/lib/Target/AArch64/AArch64InstrInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp index c8651d4aef8..78534542240 100644 --- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp +++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp @@ -5782,7 +5782,7 @@ AArch64InstrInfo::describeLoadedValue(const MachineInstr &MI) const { case AArch64::MOVZXi: if (!MI.getOperand(1).isImm()) return None; - int Immediate = MI.getOperand(1).getImm(); + int64_t Immediate = MI.getOperand(1).getImm(); int Shift = MI.getOperand(2).getImm(); return ParamLoadedValue(MachineOperand::CreateImm(Immediate << Shift), nullptr); -- cgit v1.2.3