Build a zero element array type that reliably renders as T[0] in diagnostcs.
authorMartin Sebor <msebor@redhat.com>
Wed, 23 Sep 2020 21:19:13 +0000 (15:19 -0600)
committerMartin Sebor <msebor@redhat.com>
Wed, 23 Sep 2020 21:19:13 +0000 (15:19 -0600)
commit67aeddb785ddcc8688ee5736ecab3c81de34a214
tree39438e9b376232c2094abbfcac4b9452c7c88e4a
parent6edc8f5bfe7d9db8fb8bd37bb8086a69850c6c6d
Build a zero element array type that reliably renders as T[0] in diagnostcs.

gcc/ChangeLog:

* gimple-array-bounds.cc (build_zero_elt_array_type): New function.
(array_bounds_checker::check_mem_ref): Call it.
gcc/gimple-array-bounds.cc