This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 10/30/2013 10:52 AM, Marek Polacek wrote:
+ if ((flag_sanitize & SANITIZE_VLA) + && !processing_template_decl
You don't need to check processing_template_decl; the template case was already handled above.
+ tree x = cp_save_expr (size); + x = build2 (COMPOUND_EXPR, TREE_TYPE (x), + ubsan_instrument_vla (input_location, x), x); + finish_expr_stmt (x);
Saving 'size' here doesn't help since it's already been used above. Could you use itype instead of size here?
Jason
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |