summaryrefslogtreecommitdiff
path: root/src/cl_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cl_api.c')
-rw-r--r--src/cl_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_api.c b/src/cl_api.c
index bb56cc53..3baf38ac 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -992,6 +992,7 @@ clCompileProgram(cl_program program ,
/* TODO support create program from binary */
assert(program->source_type == FROM_LLVM ||
program->source_type == FROM_SOURCE ||
+ program->source_type == FROM_LLVM_SPIR ||
program->source_type == FROM_BINARY);
if((err = cl_program_compile(program, num_input_headers, input_headers, header_include_names, options)) != CL_SUCCESS) {
goto error;