aboutsummaryrefslogtreecommitdiff
path: root/gcc/asan.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/asan.c')
-rw-r--r--gcc/asan.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/asan.c b/gcc/asan.c
index 9e696a4..eee1a71 100644
--- a/gcc/asan.c
+++ b/gcc/asan.c
@@ -2762,6 +2762,9 @@ pass_sanopt::execute (function *fun)
case IFN_UBSAN_NULL:
ubsan_expand_null_ifn (gsi);
break;
+ case IFN_UBSAN_BOUNDS:
+ ubsan_expand_bounds_ifn (&gsi);
+ break;
default:
break;
}
@@ -2772,6 +2775,10 @@ pass_sanopt::execute (function *fun)
print_gimple_stmt (dump_file, stmt, 0, dump_flags);
fprintf (dump_file, "\n");
}
+
+ /* ubsan_expand_bounds_ifn might move us to the end of the BB. */
+ if (gsi_end_p (gsi))
+ break;
}
}
return 0;