Skip to content

Commit

Permalink
[Hexagon] Fix addressing TVMValue array (apache#9302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Parzyszek authored and ylc committed Jan 13, 2022
1 parent 9b1fb47 commit 225e36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/llvm/codegen_hexagon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ CodeGenLLVM::TypedPointer CodeGenHexagon::CreateStructRefPtr(DataType t, llvm::V
} else {
ICHECK(t.is_handle());
buf = builder_->CreatePointerCast(buf, t_tvm_value_->getPointerTo());
buf = builder_->CreateInBoundsGEP(t_void_p_, buf, index);
buf = builder_->CreateInBoundsGEP(t_tvm_value_, buf, index);
return TypedPointer(t_void_p_, builder_->CreatePointerCast(buf, t_void_p_->getPointerTo()));
}
}
Expand Down

0 comments on commit 225e36c

Please sign in to comment.