[PATCH] D109359: [TableGen] Emit a warning for unused template args
Geoffrey Martin-Noble via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 4 10:38:59 PDT 2021
GMNGeoffrey added a comment.
In D109359#3109424 <https://reviews.llvm.org/D109359#3109424>, @GMNGeoffrey wrote:
> In D109359#3109422 <https://reviews.llvm.org/D109359#3109422>, @foad wrote:
>
>> Can you put something like `defvar unused = !size(types);` inside your class?
>
> Thanks for the suggestion, but apparently not :-(
>
> iree/compiler/Dialect/Util/IR/UtilBase.td:187:25: error: Variable not defined: 'types'
> defvar unused = !size(types);
I can add a random extra "unused" field though `int unused = !size(types);`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109359/new/
https://reviews.llvm.org/D109359
More information about the llvm-commits
mailing list