Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd282e88

Browse files
committed
Track LLVM 18 changes.
A function was given a newly standard name from C++20 in LLVM 16. ThenLLVM 18 added a deprecation warning for the old name, and it is about toship, 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 parentb91f918 commitd282e88

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+
#definestarts_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)

[8]ページ先頭

©2009-2025 Movatter.jp