[clang-cl] /EHc should not effect functions with explicit exception specifications
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 29 Feb 2016 01:40:36 +0000 (01:40 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 29 Feb 2016 01:40:36 +0000 (01:40 +0000)
commitcd5855e3549eebbf2a22d31b37f36d223c4c7b62
tree2e2885e4d9f404f48923f7d0f87ded7ff0c4490a
parent387fccd8dad1ab16f4d7332e8462b88bcbb2b26e
[clang-cl] /EHc should not effect functions with explicit exception specifications

Functions with an explicit exception specification have their behavior
dictated by the specification.  The additional /EHc behavior only comes
into play if no exception specification is given.

llvm-svn: 262198
clang/lib/Driver/Tools.cpp
clang/lib/Driver/Tools.h
clang/lib/Sema/SemaDecl.cpp
clang/test/CodeGenCXX/exceptions-cxx-ehsc.cpp
clang/test/Driver/cl-options.c