Skip to content

Commit d282e88

Browse files
committed
Track LLVM 18 changes.
A function was given a newly standard name from C++20 in LLVM 16. Then LLVM 18 added a deprecation warning for the old name, and it is about to ship, so it's time to adjust that. Back-patch to all supported releases. Discussion: https://www.postgresql.org/message-id/CA+hUKGLbuVhH6mqS8z+FwAn4=5dHs0bAWmEMZ3B+iYHWKC4-ZA@mail.gmail.com
1 parent b91f918 commit d282e88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/jit/llvm/llvmjit_inline.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,10 @@ static void
821821
add_module_to_inline_search_path(InlineSearchPath& searchpath, llvm::StringRef modpath)
822822
{
823823
/* only extension in libdir are candidates for inlining for now */
824-
if (!modpath.startswith("$libdir/"))
824+
#if LLVM_VERSION_MAJOR < 16
825+
#define starts_with startswith
826+
#endif
827+
if (!modpath.starts_with("$libdir/"))
825828
return;
826829

827830
/* if there's no match, attempt to load */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy