diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-07-04 13:58:54 +0000 | 
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-07-04 13:58:54 +0000 | 
| commit | 5362a71c02e7d448a8ce98cf00c47e353fba5d04 (patch) | |
| tree | 8ddfe382e1c6d590dc240e76f7cd45cea5c78e24 /lib/Sema/SemaExprCXX.cpp | |
| parent | 4ebdf5c4f587daef4e0be499802eac3a7a49bf2f (diff) | |
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
| -rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index bc8fc4eae502..7afa5941dad9 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -552,7 +552,7 @@ bool Sema::FindAllocationOverload(SourceLocation StartLoc, SourceRange Range,                                    bool AllowMissing, FunctionDecl *&Operator)  {    DeclContext::lookup_iterator Alloc, AllocEnd; -  llvm::tie(Alloc, AllocEnd) = Ctx->lookup(Context, Name); +  llvm::tie(Alloc, AllocEnd) = Ctx->lookup(Name);    if (Alloc == AllocEnd) {      if (AllowMissing)        return false; @@ -657,7 +657,7 @@ void Sema::DeclareGlobalAllocationFunction(DeclarationName Name,    // Check if this function is already declared.    {      DeclContext::lookup_iterator Alloc, AllocEnd; -    for (llvm::tie(Alloc, AllocEnd) = GlobalCtx->lookup(Context, Name); +    for (llvm::tie(Alloc, AllocEnd) = GlobalCtx->lookup(Name);           Alloc != AllocEnd; ++Alloc) {        // FIXME: Do we need to check for default arguments here?        FunctionDecl *Func = cast<FunctionDecl>(*Alloc); @@ -680,7 +680,7 @@ void Sema::DeclareGlobalAllocationFunction(DeclarationName Name,    // FIXME: Also add this declaration to the IdentifierResolver, but    // make sure it is at the end of the chain to coincide with the    // global scope. -  ((DeclContext *)TUScope->getEntity())->addDecl(Context, Alloc); +  ((DeclContext *)TUScope->getEntity())->addDecl(Alloc);  }  /// ActOnCXXDelete - Parsed a C++ 'delete' expression (C++ 5.3.5), as in: @@ -1567,7 +1567,7 @@ Sema::OwningExprResult Sema::MaybeBindToTemporary(Expr *E) {    CXXTemporary *Temp = CXXTemporary::Create(Context,                                               RD->getDestructor(Context));    ExprTemporaries.push_back(Temp); -  MarcDestructorReferenced(E->getExprLoc(), E->getType()); +  MarkDestructorReferenced(E->getExprLoc(), E->getType());    // FIXME: Add the temporary to the temporaries vector.    return Owned(CXXBindTemporaryExpr::Create(Context, Temp, E));  } | 
