Right now it is a '<invalid sloc>' for cases like this.
CounterCoverageMappingBuilder relies on the information to decide the
region for a attributed loop.
Fix PR40971
Differential D80944
Add begin source location for the attributed statement created from PragmaLoopHint decorated loop ychen on Jun 1 2020, 11:53 AM. Authored by
Details Right now it is a '<invalid sloc>' for cases like this. Fix PR40971
Diff Detail
Event TimelineComment Actions Comment Actions LGTM except for the nit I put in a comment. However, I have little experience with these particular pragmas. Before pushing, please give others a few more days in case they want to review.
Comment Actions
Comment Actions LGTM aside from a minor nit.
Comment Actions Note that this causes a regression (reported here) https://bugs.llvm.org/show_bug.cgi?id=46336 The assert added here breaks in the case where a pragma loop attribute is combined with a C++ attribute. |
When I remove this change, the new test still passes. Please make sure this case is covered.