[all-commits] [llvm/llvm-project] 812bdb: [MS] Don't reference deleted copy ctors from catch...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Wed Oct 30 15:06:30 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 812bdb3c13210759341e8a1b08b864a539ce9dc7
      https://github.com/llvm/llvm-project/commit/812bdb3c13210759341e8a1b08b864a539ce9dc7
  Author: Reid Kleckner <rnk at google.com>
  Date:   2019-10-30 (Wed, 30 Oct 2019)

  Changed paths:
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/CodeGenCXX/microsoft-abi-throw.cpp

  Log Message:
  -----------
  [MS] Don't reference deleted copy ctors from catchable types

When throwing objects with deleted copy constructors, the copy ctor
field of the catchable type should remain null and the mangle name
changes. This already worked in simple cases, but in cases involving
non-trivial subobjects, sometimes LookupCopyingConstructor could return
a non-null but deleted constructor decl. Skip those and don't reference
them.

Fixes PR43680




More information about the All-commits mailing list