Spelling change in LLVM 14 API - Mailing list pgsql-hackers

From Thomas Munro
Subject Spelling change in LLVM 14 API
Date
Msg-id CA+hUKGL=yg6qqgg6W6SAuvRQejditeoDNy-X3b9H_6Fnw8j5Wg@mail.gmail.com
Whole thread Raw
Responses Re: Spelling change in LLVM 14 API  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

After [1], seawasp blew up[2].  I tested the following fix on LLVM 13
and 14 (main branch ~2 days ago).  Better ideas welcome.

-       if (F.getAttributes().hasFnAttribute(llvm::Attribute::NoInline))
+#if LLVM_VERSION_MAJOR < 14
+#define hasFnAttr hasFnAttribute
+#endif
+
+       if (F.getAttributes().hasFnAttr(llvm::Attribute::NoInline))

[1] https://github.com/llvm/llvm-project/commit/92ce6db9ee7666a347fccf0f72ba3225b199d6d1
[2] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=seawasp&dt=2021-08-21%2023%3A17%3A30



pgsql-hackers by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: Mark all GUC variable as PGDLLIMPORT
Next
From: Tom Lane
Date:
Subject: Re: Mark all GUC variable as PGDLLIMPORT