[PATCH] D37364: [DWARF] Line 0 should not have a discriminator
Paul Robinson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 5 10:22:11 PDT 2017
probinson added a comment.
In https://reviews.llvm.org/D37364#860065, @danielcdh wrote:
> The change looks good to me. But the test is quite large and hard to understand. I don't think it's necessary to have the test generated from a source file, just forge a test with discriminator attached to line 0, and then checks if discriminators is omitted in the generated code. I guess it should suffice with < 20 LOC
If the IR explicitly has a line 0 location with a nonzero discriminator, I think DwarfDebug should obediently emit that (or assert).
The point of this patch is that when DwarfDebug *implicitly* emits a line 0 record, a preceding discriminator should not "pollute" that.
https://reviews.llvm.org/D37364
More information about the llvm-commits
mailing list