Add begin source location for the attributed statement created from PragmaLoopHint...
authorYuanfang Chen <yuanfang.chen@sony.com>
Mon, 1 Jun 2020 02:51:15 +0000 (19:51 -0700)
committerYuanfang Chen <yuanfang.chen@sony.com>
Tue, 9 Jun 2020 17:08:40 +0000 (10:08 -0700)
commit9c2e770034d04a0966b84cac14a9e3fb3b0d4ab7
treec2d1119586c55891d202dbbe844bfad0d9453dcd
parent675cefbf60270f59057972e33365a09590fb3694
Add begin source location for the attributed statement created from PragmaLoopHint decorated loop

Summary:
Right now it is a '<invalid sloc>' for cases like this.
CounterCoverageMappingBuilder relies on the information to decide the
region for a attributed loop.

Fixes PR40971

Reviewers: ABataev, jdenny, lebedev.ri, aaron.ballman

Reviewed by: jdenny, aaron.ballman

Differential Revision: https://reviews.llvm.org/D80944
clang/lib/Parse/ParsePragma.cpp
clang/lib/Parse/ParseStmt.cpp
clang/test/AST/sourceranges.cpp