Module: Mesa
Branch: main
Commit: 32358b0335142957b7e5c5a96f3081834e92971e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=32358b0335142957b7e5c5a96f3081834e92971e

Author: Lionel Landwerlin <[email protected]>
Date:   Tue Sep 28 14:33:08 2021 +0300

microsoft/clc: drop LLVM dependency to version < 12

Prior to LLVM 12, SmallVector requires 2 template arguments.

Signed-off-by: Lionel Landwerlin <[email protected]>
Fixes: c4755a7c32e66c ("microsoft/clc: Support SPIR intermediates in the 
compilation APIs")
Reviewed-by: Jesse Natalie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13083>

---

 src/microsoft/clc/clc_helpers.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microsoft/clc/clc_helpers.cpp 
b/src/microsoft/clc/clc_helpers.cpp
index f892d8fab93..912a2a9e9e5 100644
--- a/src/microsoft/clc/clc_helpers.cpp
+++ b/src/microsoft/clc/clc_helpers.cpp
@@ -874,7 +874,7 @@ clc_c_to_spir(const struct clc_compile_args *args,
    if (!pair.first)
       return -1;
 
-   ::llvm::SmallVector<char> buffer;
+   ::llvm::SmallVector<char, 0> buffer;
    ::llvm::BitcodeWriter writer(buffer);
    writer.writeModule(*pair.first);
 

Reply via email to