mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
19e5b4cf2e
commit
32358b0335
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue