Skip to content

Commit

Permalink
Fix Extract2_2D for generic vectors (fixes #1255) (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
fikovnik authored Oct 18, 2023
1 parent 56934ab commit 90e7a64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rir/src/compiler/native/lower_function_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5262,7 +5262,8 @@ void LowerFunctionLLVM::compile() {
index = builder.CreateAdd(index, index1, "", true, true);

auto res0 =
extract->vec()->type.isScalar()
(extract->vec()->type.isScalar() &&
!extract->vec()->type.maybe(RType::vec))
? vector
: accessVector(vector, index, extract->vec()->type);

Expand Down

0 comments on commit 90e7a64

Please sign in to comment.