[all-commits] [llvm/llvm-project] 7eb046: Prefer `getCurrentFileOrBufferName` in `FrontendAc...

Yuki Okushi via All-commits all-commits at lists.llvm.org
Sat Jun 18 07:48:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7eb046624f2a35f32f0821c91ad5c6a26f250e5f
      https://github.com/llvm/llvm-project/commit/7eb046624f2a35f32f0821c91ad5c6a26f250e5f
  Author: Yuki Okushi <jtitor at 2k36.org>
  Date:   2022-06-18 (Sat, 18 Jun 2022)

  Changed paths:
    M clang/lib/Frontend/FrontendAction.cpp

  Log Message:
  -----------
  Prefer `getCurrentFileOrBufferName` in `FrontendAction::EndSourceFile`

`getCurrentFile` here causes an assertion on some condition.
`getCurrentFileOrBufferName` is preferrable instead.

llvm#55950

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




More information about the All-commits mailing list