[all-commits] [llvm/llvm-project] 828552: [CodeGen] Always update map entry after adding ini...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Dec 16 07:29:53 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 828552201420720ff52c9a27ea4e8f3697f1abc1
      https://github.com/llvm/llvm-project/commit/828552201420720ff52c9a27ea4e8f3697f1abc1
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2021-12-16 (Thu, 16 Dec 2021)

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

  Log Message:
  -----------
  [CodeGen] Always update map entry after adding initializer

With opaque pointers the pointer cast may be a no-op, such that
var and castedAddr are the same. However, we still need to update
the map entry as the underlying global changed. We could explicitly
check whether the global was replaced, but we may as well just
always update the entry.




More information about the All-commits mailing list