Spelling change in LLVM 14 API

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Spelling change in LLVM 14 API
Date: 2021-08-22 12:54:35
Message-ID: CA+hUKGL=yg6qqgg6W6SAuvRQejditeoDNy-X3b9H_6Fnw8j5Wg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-08-22 13:19:42 Re: Mark all GUC variable as PGDLLIMPORT
Previous Message Julien Rouhaud 2021-08-22 12:25:51 Re: Mark all GUC variable as PGDLLIMPORT