[PATCH] D136886: [clang] [ASTImporter] RFC: Correct importer to not duplicate sugared types

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 28 00:07:13 PDT 2022


balazske added a comment.

>   (gdb) p Decl->getUnderlyingType().dump()
>   ConstantArrayType 0x118ea470 'struct __va_list_tag[1]' 1 
>   `-RecordType 0x118ea2b0 'struct __va_list_tag'
>     `-Record 0x118ea228 '__va_list_tag'
>   $2 = void
>   (gdb) p Underlying
>   $3 = {Value = {Value = 295046112}}
>   (gdb) p Underlying.dump()
>   ConstantArrayType 0x11960be0 'struct __va_list_tag[1]' 1 
>   `-RecordType 0x11960a20 'struct __va_list_tag'
>     `-Record 0x119609a0 '__va_list_tag'

Is it possible that `__va_list_tag` is not imported correctly (duplicated), there should be only one instance of this record?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136886/new/

https://reviews.llvm.org/D136886



More information about the cfe-commits mailing list