aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2008-12-03 20:26:15 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2008-12-03 20:26:15 +0000
commitb5a57a69e5fdac6dd9a92be717e279486c4a0128 (patch)
tree90da5a96e3705fcd76ce7761d4502c2d9c068fb6 /lib/Sema/Sema.cpp
parentcd25c13ade3afa829c87ca1ed0ed0d379f426251 (diff)
Overload resolution for the operator new function. Member version is still untested.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r--lib/Sema/Sema.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp
index 6b913fb215..1a9e5fb30e 100644
--- a/lib/Sema/Sema.cpp
+++ b/lib/Sema/Sema.cpp
@@ -116,7 +116,8 @@ void Sema::ActOnTranslationUnitScope(SourceLocation Loc, Scope *S) {
Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer)
: PP(pp), Context(ctxt), Consumer(consumer), Diags(PP.getDiagnostics()),
SourceMgr(PP.getSourceManager()), CurContext(0), PreDeclaratorDC(0),
- CurBlock(0), PackContext(0), IdResolver(pp.getLangOptions()) {
+ CurBlock(0), PackContext(0), IdResolver(pp.getLangOptions()),
+ GlobalNewDeleteDeclared(false) {
// Get IdentifierInfo objects for known functions for which we
// do extra checking.