[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 13:22:41 PDT 2025


================
@@ -605,6 +605,9 @@ class CGOpenMPRuntime {
                           LValue PosLVal, const OMPTaskDataTy::DependData &Data,
                           Address DependenciesArray);
 
+  /// Keep track of VTable Declarations so we don't register duplicate VTable.
+  llvm::DenseMap<CXXRecordDecl*, const VarDecl*> VTableDeclMap;
----------------
alexey-bataev wrote:

```suggestion
  llvm::SmallDenseMap<CXXRecordDecl*, const VarDecl*> VTableDeclMap;
```
 and format

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


More information about the llvm-commits mailing list