diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-18 22:15:42 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-18 22:15:42 +0000 |
commit | f8fc8b8e787c4279c1f24c91459b6dbe481d7805 (patch) | |
tree | 3100f945556d63aeaa058af9f42a2c3172835edc /libobjc/NXConstStr.m | |
parent | ae371dcf05157f821e4542336745f64a7c638cf1 (diff) | |
download | gcc-f8fc8b8e787c4279c1f24c91459b6dbe481d7805.tar.gz |
PR sanitizer/63813
* c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
argument to ptype, set type to TREE_TYPE (ptype). Don't call
get_pointer_alignment for non-pointers. Use ptype, or if it is
reference type, corresponding pointer type, as type of kind
argument.
(ubsan_maybe_instrument_reference,
ubsan_maybe_instrument_member_call): Adjust callers.
* g++.dg/ubsan/pr63813.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217741 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/NXConstStr.m')
0 files changed, 0 insertions, 0 deletions