[all-commits] [llvm/llvm-project] 431b23: [opt] Error on `opt -O# --foo-pass`

aeubanks via All-commits all-commits at lists.llvm.org
Mon May 9 09:53:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 431b23d20d5c2889d38c9ce20ac8e66357d5d9c4
      https://github.com/llvm/llvm-project/commit/431b23d20d5c2889d38c9ce20ac8e66357d5d9c4
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M llvm/test/Other/opt-On.ll
    M llvm/tools/opt/opt.cpp

  Log Message:
  -----------
  [opt] Error on `opt -O# --foo-pass`

Matches the error message we emit with `-opt -O# --passes=foo`.
Otherwise we crash later on.

Makes #55320 much less confusing.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D125196




More information about the All-commits mailing list