[PATCH] D109359: [TableGen] Emit a warning for unused template args
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 4 10:29:56 PDT 2021
foad added a comment.
In D109359#3109353 <https://reviews.llvm.org/D109359#3109353>, @GMNGeoffrey wrote:
> I'm seeing warnings from this in my downstream project. The template argument is currently unused because there's a TODO to add additional restrictions based on it https://github.com/google/iree/blob/f06c804f9ec79e16da7dcee1af81afd7b95a8bb1/iree/compiler/Dialect/Util/IR/UtilBase.td#L186. I don't see in the thread that there was any conclusion for how to suppress this warning. The argument that it's optional doesn't really apply anymore, since it's on by default. Do we have a way to do the equivalent of casting to void to suppress this warning locally?
Can you put something like `defvar unused = !size(types);` inside your class?
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