The code previously assumed that the index of a vector extract was
constant, but this was not always true. This patch fixes the problem
by bailing out of the lowering if the index is nonconstant and also
replaces static_casts in the lowering function with casts because
the latter contain type-checking asserts that would make similar
issues easier to find and debug.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo