[all-commits] [llvm/llvm-project] 60ce8b: [coro] Preserve scope line for compiler generated ...

Dave Lee via All-commits all-commits at lists.llvm.org
Wed Jun 2 15:57:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 60ce8babf77e65836d844741fbe50f297ad00781
      https://github.com/llvm/llvm-project/commit/60ce8babf77e65836d844741fbe50f297ad00781
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2021-06-02 (Wed, 02 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroSplit.cpp
    M llvm/test/Transforms/Coroutines/coro-async.ll

  Log Message:
  -----------
  [coro] Preserve scope line for compiler generated functions

Coro-split functions with an active suspend point have their scope line set to
the line of the suspend point. However for compiler generated functions, this
results in debug info with unconventional results: a file named
`<compiler-generated>` with a non-zero line number. The convention for
`<compiler-generated>` is that the line number is zero.

This change propagates the scope line only for non-compiler generated
functions.

Differential Revision: https://reviews.llvm.org/D102412




More information about the All-commits mailing list