[all-commits] [llvm/llvm-project] 942748: [lldb][Test] Prevent generating DW_AT_location for...
Michael137 via All-commits
all-commits at lists.llvm.org
Thu Aug 25 00:50:22 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9427487fdbb24df148caba7f9b2f87146e5b40ec
https://github.com/llvm/llvm-project/commit/9427487fdbb24df148caba7f9b2f87146e5b40ec
Author: Michael Buch <michaelbuch12 at gmail.com>
Date: 2022-08-25 (Thu, 25 Aug 2022)
Changed paths:
M lldb/test/API/functionalities/unused-inlined-parameters/TestUnusedInlinedParameters.py
M lldb/test/API/functionalities/unused-inlined-parameters/main.c
Log Message:
-----------
[lldb][Test] Prevent generating DW_AT_location for unused argument
This test simply checks whether we can print an optimized
function argument. With recent changes to Clang the assumption
that we don't generate a `DW_AT_location` attribute for the
unused funciton parameter breaks.
This patch tries harder to get Clang to drop the location
from DWARF by making it generate an `undef` for `unused1`.
Drop the check for `unused2` since it adds no benefit.
Differential Revision: https://reviews.llvm.org/D132635
More information about the All-commits
mailing list