aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-27 07:36:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-27 07:36:24 +0000
commit523208fb4aaa5e569bc87040730700659bc99282 (patch)
tree605ac15dd8043cb0788dbe037da63d0c2435ffef /clang/lib/Basic/SourceManager.cpp
parentaec553bfdb06429fc0d941d39f37cdd51b2c3e9c (diff)
downloadllvm-523208fb4aaa5e569bc87040730700659bc99282.zip
llvm-523208fb4aaa5e569bc87040730700659bc99282.tar.gz
llvm-523208fb4aaa5e569bc87040730700659bc99282.tar.bz2
Simplify generate code for exceptions:
- There is no need to branch on the rethrow variable to determine if we need to call objc_exception_try_exit. We know whether an exception was thrown, so just branch to a different target if we want to skip the try_exit. This is a slight semantic departure from gcc, but only for throwing nil, which is undefined (and for which gcc emits broken code). - Also fixes a bug in current code which was calling try_exit too many times when an exception was uncaught (but there were some handlers). Fix bug introduced in prev. commit, the type of the @catch parameter was uninitialized. llvm-svn: 56754
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions