aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_expr.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2024-07-15 16:20:09 +1200
committerThomas Munro <tmunro@postgresql.org>2024-07-15 21:48:48 +1200
commit8583b1f99340f4de24661dc50ab63ec6965f6759 (patch)
tree4a18c92b90612f218725b0c2bbe50b35388f1b79 /src/backend/jit/llvm/llvmjit_expr.c
parent91651347bae1026afefc648ff939e286878c1cf3 (diff)
downloadpostgresql-8583b1f99340f4de24661dc50ab63ec6965f6759.tar.gz
postgresql-8583b1f99340f4de24661dc50ab63ec6965f6759.zip
Run LLVM verify pass on IR in assert builds.
The problem fixed by commit 53c8d6c9 would have been noticed if we'd been running LLVM's verify pass on generated IR. Doing so also reveals a complaint about incorrect name mangling, fixed here. Only enabled for LLVM 17+ because it uses the new pass manager API. Suggested-by: Dmitry Dolgov <9erthalion6@gmail.com> Discussion: https://postgr.es/m/CAFj8pRACpVFr7LMdVYENUkScG5FCYMZDDdSGNU-tch%2Bw98OxYg%40mail.gmail.com
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_expr.c')
-rw-r--r--src/backend/jit/llvm/llvmjit_expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/jit/llvm/llvmjit_expr.c b/src/backend/jit/llvm/llvmjit_expr.c
index 306aea82d3b..cbd9ed7cc4b 100644
--- a/src/backend/jit/llvm/llvmjit_expr.c
+++ b/src/backend/jit/llvm/llvmjit_expr.c
@@ -2765,7 +2765,7 @@ create_LifetimeEnd(LLVMModuleRef mod)
LLVMContextRef lc;
/* variadic pointer argument */
- const char *nm = "llvm.lifetime.end.p0i8";
+ const char *nm = "llvm.lifetime.end.p0";
fn = LLVMGetNamedFunction(mod, nm);
if (fn)