[all-commits] [llvm/llvm-project] 6b054f: [CIR] Implement EH handling for field initializers...

Andy Kaylor via All-commits all-commits at lists.llvm.org
Thu Apr 16 11:49:20 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b054fdbcd8bd7b3fb850794e0feaa6d6525c793
      https://github.com/llvm/llvm-project/commit/6b054fdbcd8bd7b3fb850794e0feaa6d6525c793
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenClass.cpp
    M clang/lib/CIR/CodeGen/CIRGenDecl.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    A clang/test/CIR/CodeGen/field-init-eh.cpp

  Log Message:
  -----------
  [CIR] Implement EH handling for field initializers (#192360)

This implements the handling to call the dtor for any previously
initialized fields of destructed type if an exception is thrown later in
the initialization of the containing class.

The basic infrastructure to handle this was already in place. We just
needed a function to push an EH-only destroy cleanup on the EH stack and
a call to that function.



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