[PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-06 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL312623: Debug info: Fixed faulty debug locations for attributed statements (authored by karka). Changed prior to commit: https://reviews.llvm.org/D37428?vs=113803=113968#toc Repository: rL LLVM

Re: [PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-06 Thread David Blaikie via cfe-commits
Fine to remove it if it didn't change the test - it just wasn't clear to me what exactly was being tested at the time so it was more "does this test still work with/without -disable-llvm-passes". No worries. On Tue, Sep 5, 2017 at 10:58 PM Karl-Johan Karlsson via Phabricator <

[PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-05 Thread Karl-Johan Karlsson via Phabricator via cfe-commits
Ka-Ka added inline comments. Comment at: test/CodeGen/debug-info-attributed-stmt.c:1 +// RUN: %clang_cc1 -triple x86_64-unk-unk -disable-llvm-passes -debug-info-kind=limited -emit-llvm %s -o - | FileCheck %s + echristo wrote: > Since we're not optimizing or

[PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-05 Thread Eric Christopher via Phabricator via cfe-commits
echristo added inline comments. Comment at: test/CodeGen/debug-info-attributed-stmt.c:1 +// RUN: %clang_cc1 -triple x86_64-unk-unk -disable-llvm-passes -debug-info-kind=limited -emit-llvm %s -o - | FileCheck %s + Since we're not optimizing or generating code

[PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-05 Thread David Blaikie via Phabricator via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. OK, sounds good - thanks :) https://reviews.llvm.org/D37428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-05 Thread Karl-Johan Karlsson via Phabricator via cfe-commits
Ka-Ka added a comment. In https://reviews.llvm.org/D37428#861140, @dblaikie wrote: > Not sure what you mean by "avoid emitting unnecessary stop points" - do you > have a test case for that? In my previous patch you could end up doing two calls to EmitStopPoint() for the same statement. In

[PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-05 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. Not sure what you mean by "avoid emitting unnecessary stop points" - do you have a test case for that? https://reviews.llvm.org/D37428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-05 Thread Karl-Johan Karlsson via Phabricator via cfe-commits
Ka-Ka updated this revision to Diff 113803. Ka-Ka edited the summary of this revision. Ka-Ka added a reviewer: dblaikie. Ka-Ka added a comment. I updated the testcase according to what David Blaikie suggested. I also rewrote to code to be a bit more robust and avoid emitting unnecessary

Re: [PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-04 Thread David Blaikie via cfe-commits
Seems like the test case should/could be simplified a bit, maybe? (could it be something really simple like "void f(bool b) { #pragma ... while (b) ; }"?) Also, is it relying on LLVM optimizations to run (add "-disable-llvm-passes" to the command line to be sure it isn't, perhaps?)? On Sun, Sep

[PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-03 Thread Karl-Johan Karlsson via Phabricator via cfe-commits
Ka-Ka added inline comments. Comment at: test/CodeGen/debug-info-attributed-stmt.c:18 +// CHECK: br label %while.cond, !dbg ![[NUM]], !llvm.loop +// CHECK: ![[NUM]] = !DILocation(line: 9, scope: !14) +} The part "scope: !14)" should be removed from the testcase.

[PATCH] D37428: Debug info: Fixed faulty debug locations for attributed statements

2017-09-03 Thread Karl-Johan Karlsson via Phabricator via cfe-commits
Ka-Ka created this revision. Herald added a subscriber: aprantl. As no stoppoint was generated the attributed statements got faulty debug locations. https://reviews.llvm.org/D37428 Files: lib/CodeGen/CGStmt.cpp test/CodeGen/debug-info-attributed-stmt.c Index: