[clang] Reland [C++20] [Modules] [Itanium ABI] Generate the vtable in the mod… (PR #102287)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 7 21:06:15 PDT 2024


================
@@ -18075,6 +18075,15 @@ void Sema::ActOnTagFinishDefinition(Scope *S, Decl *TagD,
       if (NumInitMethods > 1 || !Def->hasInitMethod())
         Diag(RD->getLocation(), diag::err_sycl_special_type_num_init_method);
     }
+
+    // If we're defining a dynamic class in a module interface unit, we always
+    // need to produce the vtable for it even if the vtable is not used in the
+    // current TU.
+    //
+    // The case that the current class is not dynamic is handled in
----------------
mizvekov wrote:

```suggestion
    // The case where the current class is not dynamic is handled in
```

https://github.com/llvm/llvm-project/pull/102287


More information about the cfe-commits mailing list