[PATCH] D120296: [Attr] Fix a btf_type_tag AST generation bug

Yonghong Song via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 16 10:45:36 PDT 2022



On 3/16/22 10:32 AM, Sterling Augustine via Phabricator wrote:
> saugustine added a comment.
> 
> This change ends up leaving some unhandled enum with switches inside lldb, and it isn't obvious to me how to fix them. Can you take a quick look?
> 
>    llvm-project/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4098:11: error: enumeration value 'BTFTagAttributed' not handled in switch [-Werror,-Wswitch]
>      switch (qual_type->getTypeClass()) {
>              ^~~~~~~~~~~~~~~~~~~~~~~~~
>    llvm-project/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4757:11: error: enumeration value 'BTFTagAttributed' not handled in switch [-Werror,-Wswitch]
>      switch (qual_type->getTypeClass()) {
>              ^~~~~~~~~~~~~~~~~~~~~~~~~
>    llvm-project/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:5140:11: error: enumeration value 'BTFTagAttributed' not handled in switch [-Werror,-Wswitch]
>      switch (qual_type->getTypeClass()) {
>              ^~~~~~~~~~~~~~~~~~~~~~~~~
>    3 errors generated.


Thanks. Will take a look immediately.

> 
> Repository:
>    rG LLVM Github Monorepo
> 
> CHANGES SINCE LAST ACTION
>    https://reviews.llvm.org/D120296/new/
> 
> https://reviews.llvm.org/D120296
> 


More information about the cfe-commits mailing list