Commit 917124c3 by Jason Merrill Committed by Jason Merrill

cp-ubsan.c (cp_ubsan_instrument_vptr_p): Use do_ubsan_in_current_function.

	* cp-ubsan.c (cp_ubsan_instrument_vptr_p): Use
	do_ubsan_in_current_function.

From-SVN: r230896
parent c217bac5
2015-11-25 Jason Merrill <jason@redhat.com>
* cp-ubsan.c (cp_ubsan_instrument_vptr_p): Use
do_ubsan_in_current_function.
2015-11-25 Markus Trippelsdorf <markus@trippelsdorf.de>
Paolo Carlini <paolo.carlini@oracle.com>
......
......@@ -32,9 +32,7 @@ cp_ubsan_instrument_vptr_p (tree type)
if (!flag_rtti || flag_sanitize_undefined_trap_on_error)
return false;
if (current_function_decl
&& lookup_attribute ("no_sanitize_undefined",
DECL_ATTRIBUTES (current_function_decl)))
if (!do_ubsan_in_current_function ())
return false;
if (type)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment