This commit fixes "attempt to subscript container with out-of-bounds
index" error reported by the GNU C++ Library in debug mode (enabled by
|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
I also renamed the test to better indicate what it is about.
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?