| commit | 3427fac7c883efbb1097ac9ba13198b95c9fbccb | [log] [tgz] |
|---|---|---|
| author | Ted Kremenek <kremenek@apple.com> | Wed Feb 23 01:52:04 2011 +0000 |
| committer | Ted Kremenek <kremenek@apple.com> | Wed Feb 23 01:52:04 2011 +0000 |
| tree | 90b45ab6b5b03a98eef401300c9b0d989f6252b8 | |
| parent | 80861ca9b53545dd1579a9853807e780952a55da [diff] |
Enhance Sema::DiagRuntimeBehavior() to delay some diagnostics to see if the related code is reachable. This suppresses some diagnostics that occur in unreachable code (e.g., -Warray-bound). We only pay the cost of doing the reachability analysis when we issue one of these diagnostics. llvm-svn: 126290