================
@@ -191,14 +191,6 @@ llvm::Error 
ItaniumABILanguageRuntime::TypeHasVTable(CompilerType type) {
       type = pointee_type;
   }
 
-  // Make sure this is a class or a struct first by checking the type class
-  // bitfield that gets returned.
-  if ((type.GetTypeClass() & (eTypeClassStruct | eTypeClassClass)) == 0) {
----------------
mentlerd wrote:

I might have overgeneralized here a bit - `TypeSystemClang::IsPolymorphicClass` 
already checks these conditions, and seems to handle situations better where 
`CompilerType` is a typedef to a struct/class instead of being one itself.

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

Reply via email to