[all-commits] [llvm/llvm-project] e50a60: Quick fix to unbreak tblgen past 8ae18303f97d

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Tue Dec 6 05:39:55 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e50a60d7349de151bd2b06d85a79201ebc372d8a
      https://github.com/llvm/llvm-project/commit/e50a60d7349de151bd2b06d85a79201ebc372d8a
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2022-12-06 (Tue, 06 Dec 2022)

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

  Log Message:
  -----------
  Quick fix to unbreak tblgen past 8ae18303f97d

llvm/tools/llvm-objdump/llvm-objdump.cpp:128:38: error: constexpr variable 'ObjdumpInfoTable' must be initialized by a constant expression
static constexpr opt::OptTable::Info ObjdumpInfoTable[] = {
                                     ^                    ~
ObjdumpOpts.inc:30:45: note: non-constexpr function 'substr' cannot be used in a constant expression
OPTION(prefix_0, llvm::StringRef("<input>").substr(0), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr)
                                            ^




More information about the All-commits mailing list