summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDjordje Todorovic <djordje.todorovic@rt-rk.com>2019-11-14 08:32:03 +0100
committerDjordje Todorovic <djordje.todorovic@rt-rk.com>2019-11-14 11:02:35 +0100
commit2eb0862ed8a824f0d02c3df6ec4e05175cf8c3f1 (patch)
treec997fbf53518fa22abda14d6ae60b447a536c6a7 /llvm/lib
parente78083929d1a949f21d7d355b3c00a2ed00efabb (diff)
downloadbcm5719-llvm-2eb0862ed8a824f0d02c3df6ec4e05175cf8c3f1.tar.gz
bcm5719-llvm-2eb0862ed8a824f0d02c3df6ec4e05175cf8c3f1.zip
[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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64InstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud