aboutsummaryrefslogtreecommitdiff
path: root/development/ispc/07e63aeea2687b799acca932670f0ad12591097e.patch
blob: dfbb179f6622bb250c627be3f0a720ccee6a8833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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