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

Sterling Augustine via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 16 10:32:22 PDT 2022


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.


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