summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorDavid Stenberg <david.stenberg@ericsson.com>2019-10-14 12:49:58 +0000
committerDavid Stenberg <david.stenberg@ericsson.com>2019-10-14 12:49:58 +0000
commit8535bed79504ffe3ed7f2de8c158a17e79e54736 (patch)
treee5727cd8d841caa68a0c1376b7301e92d9f81f30 /llvm/lib/CodeGen/AsmPrinter
parent5a8db8496440b9d6ced91bd24f4b6b463acc7d55 (diff)
downloadbcm5719-llvm-8535bed79504ffe3ed7f2de8c158a17e79e54736.tar.gz
bcm5719-llvm-8535bed79504ffe3ed7f2de8c158a17e79e54736.zip
[DebugInfo] Fix truncation of call site immediates
Summary: This addresses a bug in collectCallSiteParameters() where call site immediates would be truncated from int64_t to unsigned. This fixes PR43525. Reviewers: djtodoro, NikolaPrica, aprantl, vsk Reviewed By: aprantl Subscribers: hiraditya, llvm-commits Tags: #debug-info, #llvm Differential Revision: https://reviews.llvm.org/D68869 llvm-svn: 374770
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index be9ea00973a..82c8b955e13 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -620,7 +620,7 @@ static void collectCallSiteParameters(const MachineInstr *CallMI,
if (auto ParamValue = TII->describeLoadedValue(*I)) {
if (ParamValue->first.isImm()) {
- unsigned Val = ParamValue->first.getImm();
+ int64_t Val = ParamValue->first.getImm();
DbgValueLoc DbgLocVal(ParamValue->second, Val);
finishCallSiteParam(DbgLocVal, Reg);
} else if (ParamValue->first.isReg()) {
OpenPOWER on IntegriCloud