================
@@ -593,11 +593,12 @@ void CIRGenFunction::emitDestructorBody(FunctionArgList 
&args) {
 
     assert(!cir::MissingFeatures::dtorCleanups());
 
-    // TODO(cir): A complete destructor is supposed to call the base 
destructor.
-    // Since we have to emit both dtor kinds we just fall through for now and.
-    // As long as we don't support virtual bases this should be functionally
-    // equivalent.
-    assert(!cir::MissingFeatures::completeDtors());
+    if (!isTryBody) {
+      QualType thisTy = dtor->getFunctionObjectParameterType();
+      emitCXXDestructorCall(dtor, Dtor_Base, /*ForVirtualBase=*/false,
----------------
xlauko wrote:

```suggestion
      emitCXXDestructorCall(dtor, Dtor_Base, /*forVirtualBase=*/false,
```

https://github.com/llvm/llvm-project/pull/149552
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to