[cfe-commits] r101859 - in /cfe/trunk: lib/Sema/SemaExprCXX.cpp test/CXX/expr/expr.unary/expr.new/p19.cpp test/CXX/expr/expr.unary/expr.new/p20-0x.cpp test/CXX/expr/expr.unary/expr.new/p20.cpp test/SemaCXX/no-exceptions.cpp
John McCall
rjmccall at apple.com
Mon Apr 19 18:42:53 PDT 2010
Author: rjmccall
Date: Mon Apr 19 20:42:53 2010
New Revision: 101859
URL: http://llvm.org/viewvc/llvm-project?rev=101859&view=rev
Log:
Revert r101841 and follow-up.
Removed:
cfe/trunk/test/SemaCXX/no-exceptions.cpp
Modified:
cfe/trunk/lib/Sema/SemaExprCXX.cpp
cfe/trunk/test/CXX/expr/expr.unary/expr.new/p19.cpp
cfe/trunk/test/CXX/expr/expr.unary/expr.new/p20-0x.cpp
cfe/trunk/test/CXX/expr/expr.unary/expr.new/p20.cpp
Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=101859&r1=101858&r2=101859&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Mon Apr 19 20:42:53 2010
@@ -886,13 +886,6 @@
return true;
}
- // We don't need an operator delete if we're running under
- // -fno-exceptions.
- if (!getLangOptions().Exceptions) {
- OperatorDelete = 0;
- return false;
- }
-
// FindAllocationOverload can change the passed in arguments, so we need to
// copy them back.
if (NumPlaceArgs > 0)
Modified: cfe/trunk/test/CXX/expr/expr.unary/expr.new/p19.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/expr/expr.unary/expr.new/p19.cpp?rev=101859&r1=101858&r2=101859&view=diff
==============================================================================
--- cfe/trunk/test/CXX/expr/expr.unary/expr.new/p19.cpp (original)
+++ cfe/trunk/test/CXX/expr/expr.unary/expr.new/p19.cpp Mon Apr 19 20:42:53 2010
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -fexceptions %s
+// RUN: %clang_cc1 -fsyntax-only -verify %s
typedef __SIZE_TYPE__ size_t;
// Operator delete template for placement new with global lookup
Modified: cfe/trunk/test/CXX/expr/expr.unary/expr.new/p20-0x.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/expr/expr.unary/expr.new/p20-0x.cpp?rev=101859&r1=101858&r2=101859&view=diff
==============================================================================
--- cfe/trunk/test/CXX/expr/expr.unary/expr.new/p20-0x.cpp (original)
+++ cfe/trunk/test/CXX/expr/expr.unary/expr.new/p20-0x.cpp Mon Apr 19 20:42:53 2010
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -fexceptions %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
typedef __SIZE_TYPE__ size_t;
struct S {
Modified: cfe/trunk/test/CXX/expr/expr.unary/expr.new/p20.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/expr/expr.unary/expr.new/p20.cpp?rev=101859&r1=101858&r2=101859&view=diff
==============================================================================
--- cfe/trunk/test/CXX/expr/expr.unary/expr.new/p20.cpp (original)
+++ cfe/trunk/test/CXX/expr/expr.unary/expr.new/p20.cpp Mon Apr 19 20:42:53 2010
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -fexceptions %s
+// RUN: %clang_cc1 -fsyntax-only -verify %s
typedef __SIZE_TYPE__ size_t;
// Overloaded operator delete with two arguments
Removed: cfe/trunk/test/SemaCXX/no-exceptions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/no-exceptions.cpp?rev=101858&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/no-exceptions.cpp (original)
+++ cfe/trunk/test/SemaCXX/no-exceptions.cpp (removed)
@@ -1,21 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
-
-// Various tests for -fno-exceptions
-
-typedef __SIZE_TYPE__ size_t;
-
-namespace test0 {
- // rdar://problem/7878149
- class Foo {
- public:
- void* operator new(size_t x);
- private:
- void operator delete(void *x);
- };
-
- void test() {
- // Under -fexceptions, this does access control for the associated
- // 'operator delete'.
- (void) new Foo();
- }
-}
More information about the cfe-commits
mailing list