diff options
author | Andy Kaylor <akaylor@nvidia.com> | 2025-07-24 12:18:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-24 12:18:52 -0700 |
commit | 7dc27267eb7ef53638c2fc46ba70dfad182ec45c (patch) | |
tree | bc5b94b9c16728cd0ec0376ae71bbbe212ad5fdb /clang/lib | |
parent | 34b6587249e591aa2f3211f00a4ecad5088e5d3f (diff) | |
download | llvm-7dc27267eb7ef53638c2fc46ba70dfad182ec45c.zip llvm-7dc27267eb7ef53638c2fc46ba70dfad182ec45c.tar.gz llvm-7dc27267eb7ef53638c2fc46ba70dfad182ec45c.tar.bz2 |
[CIR] Unblock destructor alias handling (#150497)
This change removes a stale errorNYI message to allow destructor alias
handling. The error message was an artifact of the order in which
various parts of the implementation were upstreamed. Now that all the
parts are in place, all this needed was to remove the diagnostic and add
a test.
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp b/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp index 6577f5f..e5e4c68 100644 --- a/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp @@ -113,8 +113,6 @@ static StructorCIRGen getCIRGenToUse(CIRGenModule &cgm, GlobalDecl aliasDecl; if (const auto *dd = dyn_cast<CXXDestructorDecl>(md)) { - // The assignment is correct here, but other support for this is NYI. - cgm.errorNYI(md->getSourceRange(), "getCIRGenToUse: dtor"); aliasDecl = GlobalDecl(dd, Dtor_Complete); } else { const auto *cd = cast<CXXConstructorDecl>(md); |