[all-commits] [llvm/llvm-project] 0a3f2a: [BPF] Fix issues with external declarations of C++...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Thu Apr 24 14:40:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a3f2a05f27097c47d45e16828b0da0dd51fad48
      https://github.com/llvm/llvm-project/commit/0a3f2a05f27097c47d45e16828b0da0dd51fad48
  Author: Reid Kleckner <rnk at google.com>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    A clang/test/CodeGenCXX/bpf-debug-structors.cpp

  Log Message:
  -----------
  [BPF] Fix issues with external declarations of C++ structor decls (#137079)

Use GetAddrOfGlobal, which is a more general API that takes a
GlobalDecl, and handles declaring C++ destructors and other types in a
general way. We can use this to generalize over functions and variable
declarations.

This fixes issues reported on #130674 by @lexi-nadia .



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list