aboutsummaryrefslogtreecommitdiff
path: root/development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch
diff options
context:
space:
mode:
Diffstat (limited to 'development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch')
-rw-r--r--development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch b/development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch
new file mode 100644
index 0000000000..dfbb179f66
--- /dev/null
+++ b/development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch
@@ -0,0 +1,22 @@
+From 07e63aeea2687b799acca932670f0ad12591097e Mon Sep 17 00:00:00 2001
+From: Arina Neshlyaeva <arina.neshlyaeva@intel.com>
+Date: Mon, 10 Mar 2025 17:11:32 -0700
+Subject: [PATCH] Fix getWithCaptureInfo for LLVM 20.1
+
+---
+ src/module.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/module.cpp b/src/module.cpp
+index 112aaacee66..ec33261b815 100644
+--- a/src/module.cpp
++++ b/src/module.cpp
+@@ -1180,7 +1180,7 @@ void Module::AddFunctionDeclaration(const std::string &name, const FunctionType
+
+ if (attrList->HasAttribute("noescape")) {
+ if (argType->IsPointerType() && argType->IsUniformType()) {
+-#if ISPC_LLVM_VERSION > ISPC_LLVM_20_0
++#if ISPC_LLVM_VERSION >= ISPC_LLVM_21_0
+ function->addParamAttr(
+ i, llvm::Attribute::getWithCaptureInfo(function->getContext(), llvm::CaptureInfo::none()));
+ #else