[llvm-dev] Now I really have broken the build

Hubert Tong via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 22 11:40:42 PDT 2020


On Tue, Sep 22, 2020 at 2:33 PM Paul C. Anagnostopoulos via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> There is a second issue with the new TableGenBackendSkeleton.cpp file. It
> is a skeleton file for writing a new TableGen backend.
>
> /home/buildbots/docker-RHEL-buildbot/SetupBot/worker_env/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm/llvm/lib/TableGen/TableGenBackendSkeleton.cpp:38:17:
> error: private field 'Records' is not used [-Werror,-Wunused-private-field]
>   RecordKeeper &Records;
>                 ^
>  There are two options:
>
> 1. Don't compile it at all. (I swear I compiled it locally.)
>
> 2. Add something to eliminate the error.
>
> I'm open to suggestions.
>
The `run` function would normally reference the field, no?

So:
// Something that references the "Records" field.
(void)Records;


>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200922/4a97d603/attachment.html>


More information about the llvm-dev mailing list