[PATCH] D37929: [DebugInfo] Add missing DW_OP_deref when an NRVO pointer is spilled
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 14:46:01 PDT 2017
rnk added inline comments.
================
Comment at: llvm/test/DebugInfo/X86/dbg-declare-arg.ll:4
target triple = "x86_64-apple-macosx10.6.7"
; rdar://problem/9321650
;
----------------
aprantl wrote:
> According to the radar, the testcase was:
>
> ```
> class A { public: int x; int y; int z; int o; ~A() { x = 1; }};
>
> A foo(int i) {
> int j = 0;
> if (i == 42) {
> j = i + 1;
> };
> A a;
> a.x = j;
> return a;
> }
> ```
>
> Can you verify that end-to-end, this still works?
> Apparently older versions of the testcase never checked for the expressions so it is hard to tell what it originally was.
I verified this does the right thing now on gdb on Linux.
https://reviews.llvm.org/D37929
More information about the llvm-commits
mailing list