[all-commits] [llvm/llvm-project] 23423c: [TableGen] Fix a misuse of getValueAsBitsInit

Sheng via All-commits all-commits at lists.llvm.org
Mon Mar 21 23:05:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23423c0ea8d414e56081cb6a13bd8b2cc91513a9
      https://github.com/llvm/llvm-project/commit/23423c0ea8d414e56081cb6a13bd8b2cc91513a9
  Author: Sheng <ox59616e at gmail.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

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

  Log Message:
  -----------
  [TableGen] Fix a misuse of getValueAsBitsInit

`getValueAsBitsInit` will assert when the "SoftFail" isn't presented.

But given the 'if' statement below, we should've allowed this situation.

This patch fix this.




More information about the All-commits mailing list