]> granicus.if.org Git - clang/commit
[CFG] Relax Wexceptions warning on rethrow
authorErich Keane <erich.keane@intel.com>
Tue, 17 Oct 2017 20:57:24 +0000 (20:57 +0000)
committerErich Keane <erich.keane@intel.com>
Tue, 17 Oct 2017 20:57:24 +0000 (20:57 +0000)
commit2301481f441e83fc5eda437a0def0404c318d0a5
tree5a3936c43124a97bb3ff499efda17706f9cf89bd
parentcca410711ff8fcd53592f6991994b8a287a286bd
[CFG] Relax Wexceptions warning on rethrow

As reported here: https://bugs.llvm.org/show_bug.cgi?id=34973

"catch(...)" should catch EVERYTHING, even a rethrow. This
patch changes the order in which things are checked to ensure
that a '...' catch will get a rethrow.

Differential Revision: https://reviews.llvm.org/D39013

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316030 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/AnalysisBasedWarnings.cpp
test/SemaCXX/warn-throw-out-noexcept-func.cpp