mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
We shouldn't access past the end of an array, even if we think that the layout of the struct containing the array is always what we expect. The compiler is free to optimize away the stores as undefined behavior, and in fact, GCC 6.2.1 claims it will do exactly this. llvm-svn: 286093