microsoft/clc: drop LLVM dependency to version < 12

Prior to LLVM 12, SmallVector requires 2 template arguments.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c4755a7c32 ("microsoft/clc: Support SPIR intermediates in the compilation APIs")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13083>
This commit is contained in:
Lionel Landwerlin 2021-09-28 14:33:08 +03:00 committed by Marge Bot
parent 19e5b4cf2e
commit 32358b0335

View file

@ -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);