From 0e3ca4c63ecb8e43af8261020d21bc6888d18fc0 Mon Sep 17 00:00:00 2001 From: Shawn Landden Date: Thu, 25 Jul 2019 11:11:37 -0500 Subject: Fix array->vector and vector->array for many types. Allow vector of bool. Vectors do not have the same packing as arrays, and just bitcasting is not the correct way to convert them. --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index ea9039a1b6..56866340c4 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -22024,7 +22024,7 @@ static IrInstruction *ir_analyze_instruction_vector_type(IrAnalyze *ira, IrInstr if (!is_valid_vector_elem_type(elem_type)) { ir_add_error(ira, instruction->elem_type, - buf_sprintf("vector element type must be integer, float, or pointer; '%s' is invalid", + buf_sprintf("vector element type must be integer, float, bool, or pointer; '%s' is invalid", buf_ptr(&elem_type->name))); return ira->codegen->invalid_instruction; } -- cgit v1.2.3