From 641fdce2359763bbc831255c2f88cfa19e960831 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Thu, 17 Dec 2009 10:15:49 +0000 Subject: revert part of my last patch, and mark only the c++ global new operator as noalias. the rest will be infered by llvm optz llvm-svn: 91600 --- clang/lib/Sema/SemaDecl.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'clang/lib/Sema/SemaDecl.cpp') diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index ca42cac72c8..ee4bd226768 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -2799,11 +2799,6 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC, D.getIdentifierLoc(), Name, R, TInfo, isStatic, isInline); - if ((Name.getCXXOverloadedOperator() == OO_New || - Name.getCXXOverloadedOperator() == OO_Array_New) && - getLangOptions().AssumeSaneOperatorNew) - NewFD->addAttr(::new (Context) MallocAttr()); - isVirtualOkay = !isStatic; } else { // Determine whether the function was written with a -- cgit v1.2.3