From 32358b0335142957b7e5c5a96f3081834e92971e Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 28 Sep 2021 14:33:08 +0300 Subject: [PATCH] microsoft/clc: drop LLVM dependency to version < 12 Prior to LLVM 12, SmallVector requires 2 template arguments. Signed-off-by: Lionel Landwerlin Fixes: c4755a7c32e66c ("microsoft/clc: Support SPIR intermediates in the compilation APIs") Reviewed-by: Jesse Natalie Part-of: --- 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 f892d8f..912a2a9 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 buffer; + ::llvm::SmallVector buffer; ::llvm::BitcodeWriter writer(buffer); writer.writeModule(*pair.first); -- 2.7.4