[all-commits] [llvm/llvm-project] 633ca3: [UniqueLinkageName] Use exsiting GlobalDecl object...

Hongtao Yu via All-commits all-commits at lists.llvm.org
Mon Jun 28 14:51:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 633ca3ff2f8fc2e2b69001d17abc43f302578fc1
      https://github.com/llvm/llvm-project/commit/633ca3ff2f8fc2e2b69001d17abc43f302578fc1
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2021-06-28 (Mon, 28 Jun 2021)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp
    M clang/test/CodeGen/unique-internal-linkage-names.cpp

  Log Message:
  -----------
  [UniqueLinkageName] Use exsiting GlobalDecl object instead of reconstructing one.

C++ constructors/destructors need to go through a different constructor to construct a GlobalDecl object in order to retrieve their linkage type. This causes an assert failure in the default constructor of GlobalDecl. I'm chaning it to using the exsiting GlobalDecl object.

Reviewed By: dblaikie

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




More information about the All-commits mailing list