commit | b60a77e453d32db0ab1914d28e175c2defc0eb65 | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Sun Aug 01 00:26:45 2010 +0000 |
committer | John McCall <rjmccall@apple.com> | Sun Aug 01 00:26:45 2010 +0000 |
tree | 96a5010a106877369b4b5e4ac4973a2fe1fd9c4b | |
parent | 64a15230a9e0e030bd761c6848a5876354653ded [diff] |
Only run the jump-checker if there's a branch-protected scope *and* there's a switch or goto somewhere in the function. Indirect gotos trigger the jump-checker regardless, because the conditions there are slightly more elaborate and it's too marginal a case to be worth optimizing. Turns off the jump-checker in a lot of cases in C++. rdar://problem/7702918 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109962 91177308-0d34-0410-b5e6-96231b3b80d8