Commit 9677ef52 by Marek Polacek Committed by Marek Polacek

* c-ubsan.c (ubsan_instrument_shift): Use type0.

From-SVN: r223646
parent ea292448
2015-05-25 Marek Polacek <polacek@redhat.com>
* c-ubsan.c (ubsan_instrument_shift): Use type0.
2015-05-22 Marek Polacek <polacek@redhat.com>
PR c/47043
......
......@@ -173,7 +173,7 @@ ubsan_instrument_shift (location_t loc, enum tree_code code,
x < 0 || ((unsigned) x >> (uprecm1 - y))
if > 1, is undefined. */
if (code == LSHIFT_EXPR
&& !TYPE_UNSIGNED (TREE_TYPE (op0))
&& !TYPE_UNSIGNED (type0)
&& (cxx_dialect >= cxx11))
{
tree x = fold_build2 (MINUS_EXPR, op1_utype, uprecm1,
......
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