This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Fix truncation of call site immediates
ClosedPublic

Authored by dstenb on Oct 11 2019, 6:57 AM.

Details

Summary

This addresses a bug in collectCallSiteParameters() where call site
immediates would be truncated from int64_t to unsigned.

This fixes PR43525.

Diff Detail

Event Timeline

dstenb created this revision.Oct 11 2019, 6:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2019, 6:57 AM

Looks reasonable, thanks for fixing this!

aprantl added inline comments.Oct 11 2019, 3:13 PM
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
623

We should only use auto where the type is obvious from the context. Let's use uint64_t here.

aprantl accepted this revision.Oct 11 2019, 3:13 PM

LGTM with comment addressed.

This revision is now accepted and ready to land.Oct 11 2019, 3:13 PM
dstenb updated this revision to Diff 224837.Oct 14 2019, 5:44 AM

Change use of auto keyword.

dstenb marked an inline comment as done.Oct 14 2019, 5:47 AM
dstenb added inline comments.
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
623

Oh, right! As both the return value from getImm() and the DbgValueLoc constructor's parameter are int64_t I went with that in favor of uint64_t.

This revision was automatically updated to reflect the committed changes.