[all-commits] [llvm/llvm-project] a2920c: [codegen] Fix one more case where `getGlobalDecl` ...

darkbuck via All-commits all-commits at lists.llvm.org
Tue Mar 17 14:58:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a2920c4ea9971cc38cbca3d6e10ccb10ab83a462
      https://github.com/llvm/llvm-project/commit/a2920c4ea9971cc38cbca3d6e10ccb10ab83a462
  Author: Michael Liao <michael.hliao at gmail.com>
  Date:   2020-03-17 (Tue, 17 Mar 2020)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp

  Log Message:
  -----------
  [codegen] Fix one more case where `getGlobalDecl` should be used. NFC.

- After https://reviews.llvm.org/D68578, the implicit conversion from
  `FunctionDecl` to `GlobalDecl` needs replacing with `getGlobalDecl`;
  otherwise, assertion is triggered.




More information about the All-commits mailing list