aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2009-12-17 10:15:49 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2009-12-17 10:15:49 +0000
commitb23f20d72021548c812ddc81b91bf7ad78fe708c (patch)
treed2cd9b03300e47ee26cb6e2cd64e307a82161016 /lib/Sema/SemaDecl.cpp
parentaa526240196353d62d324cc06d2f267f15645b3f (diff)
revert part of my last patch, and mark only the c++ global new operator as noalias. the rest will be infered by llvm optz
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index ca42cac72c..ee4bd22676 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/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