We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0520b5 commit 06d83c2Copy full SHA for 06d83c2
1 file changed
src/thorin/be/llvm/llvm.cpp
@@ -233,14 +233,16 @@ llvm::Type* CodeGen::convert(const Type* type) {
233
return llvm::StructType::get(context(), { union_type, tag_type });
234
}
235
236
+ case Node_VectorType: {
237
+ llvm_type = convert(get_scalar_type(type));
238
+ llvm_type = llvm::FixedVectorType::get(llvm_type, vector_length(type));
239
+ break;
240
+ }
241
+
242
default:
243
THORIN_UNREACHABLE;
244
245
- if (vector_length(type) == 1)
- return types_[type] = llvm_type;
-
- llvm_type = llvm::FixedVectorType::get(llvm_type, vector_length(type));
246
return types_[type] = llvm_type;
247
248
0 commit comments