diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-06-25 00:25:19 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-06-25 00:25:19 +0000 |
commit | 7652222a5c9c279f6415e8516f286e9af2e14b85 (patch) | |
tree | ea4c11bf383b2c3cb8794d89b72bc7324e931ccc /lib/Sema/SemaExceptionSpec.cpp | |
parent | f66ef1749a2d90cc8db66f181d5fc3d5e8cef40b (diff) | |
download | clang-7652222a5c9c279f6415e8516f286e9af2e14b85.tar.gz |
Delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184795 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r-- | lib/Sema/SemaExceptionSpec.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/Sema/SemaExceptionSpec.cpp b/lib/Sema/SemaExceptionSpec.cpp index 7ed32b89e3..919d106e24 100644 --- a/lib/Sema/SemaExceptionSpec.cpp +++ b/lib/Sema/SemaExceptionSpec.cpp @@ -229,23 +229,6 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { NewProto->getArgTypes(), EPI); New->setType(NewType); - // If exceptions are disabled, suppress the warning about missing - // exception specifications for new and delete operators. - if (!getLangOpts().CXXExceptions) { - switch (New->getDeclName().getCXXOverloadedOperator()) { - case OO_New: - case OO_Array_New: - case OO_Delete: - case OO_Array_Delete: - if (New->getDeclContext()->isTranslationUnit()) - return false; - break; - - default: - break; - } - } - // Warn about the lack of exception specification. SmallString<128> ExceptionSpecString; llvm::raw_svector_ostream OS(ExceptionSpecString); |