This commit fixes "attempt to subscript container with out-of-bounds
index" error reported by the GNU C++ Library in debug mode (enabled by
LLVM_ENABLE_EXPENSIVE_CHECKS).
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 24526 Build 24525: arc lint + arc unit
Event Timeline
test/ExecutionEngine/Interpreter/rand.ll | ||
---|---|---|
1 ↗ | (On Diff #170572) | This matches the style in intrinsics.ll, but alias.ll uses "%lli -force-interpreter %s", the differences being that it uses %lli instead of lli and does not use < redirection. I do not know which style is correct or preferred. |
I grepped the code base, and it seems that the style in alias.ll is much
more common, in particular intrinsics.ll is the only test that runs lli with
input redirection, so I changed the test to match the style in alias.ll
instead.
I also renamed the test to better indicate what it is about.
test/ExecutionEngine/Interpreter/rand.ll | ||
---|---|---|
1 ↗ | (On Diff #170572) | I created https://llvm.org/PR39524 about using lli vs %lli in tests. There is no resolution on that yet. |
I have been away from the LLVM community for a few years and am not comfortable committing a patch without review from a current committer.
Could someone on llvm-commits please take a look?