[all-commits] [llvm/llvm-project] 9c2e77: Add begin source location for the attributed state...

Yuanfang Chen via All-commits all-commits at lists.llvm.org
Tue Jun 9 10:09:29 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c2e770034d04a0966b84cac14a9e3fb3b0d4ab7
      https://github.com/llvm/llvm-project/commit/9c2e770034d04a0966b84cac14a9e3fb3b0d4ab7
  Author: Yuanfang Chen <yuanfang.chen at sony.com>
  Date:   2020-06-09 (Tue, 09 Jun 2020)

  Changed paths:
    M clang/lib/Parse/ParsePragma.cpp
    M clang/lib/Parse/ParseStmt.cpp
    M clang/test/AST/sourceranges.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list