[Debuginfo] [CSInfo] Do not create CSInfo for undef arguments
authorDjordje Todorovic <djordje.todorovic@syrmia.com>
Wed, 9 Dec 2020 11:46:30 +0000 (12:46 +0100)
committerDjordje Todorovic <djolertrk@gmail.com>
Wed, 9 Dec 2020 11:54:59 +0000 (12:54 +0100)
commit163c223161b8cd33e812613b27fbc52ea6e0f880
tree0ff466a0a09c2210db87f6836b74aa79ca4ce749
parent05edfc54750bd539f5caa30b0cd4344f68677b00
[Debuginfo] [CSInfo] Do not create CSInfo for undef arguments

If a function parameter is marked as "undef", prevent creation
of CallSiteInfo for that parameter.
Without this patch, the parameter's call_site_value would be incorrect.
The incorrect call_value case reported in PR39716,
addressed in D85111.

Patch by Nikola Tesic

Differential revision: https://reviews.llvm.org/D92471
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/X86/dbg-call-site-undef-params.ll [new file with mode: 0644]