[all-commits] [llvm/llvm-project] 685e2b: [TableGen] Avoid deprecated-enum-enum-conversion C...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Wed Sep 23 00:32:29 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 685e2b1b1231db578da789fb896543ddb311e293
      https://github.com/llvm/llvm-project/commit/685e2b1b1231db578da789fb896543ddb311e293
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M llvm/utils/TableGen/OptionParserEmitter.cpp

  Log Message:
  -----------
  [TableGen] Avoid deprecated-enum-enum-conversion C++20 warnings; NFC (#218909)

The bitwise OR of different enum types resulted in many C++20
deprecation warnings in the generated option tables:

     warning: bitwise operation between different enumeration types
     ‘llvm::opt::DriverVisibility’ and
     ‘clang::options::ClangVisibility’ is deprecated
     [-Wdeprecated-enum-enum-conversion]

Fix by emitting casts to `unsigned`, matching the types of the
corresponding fields in `OptTable::Info`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list