From 7a126a474fdde06382b315b4e3d8ef0a21d4dc31 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Tue, 31 Aug 2010 00:36:30 +0000 Subject: Rename DeclContext::getLookupContext to getRedeclContext and change its semantics slightly. No functionality change in the absence of inline namespaces. Also, change a few places where inline namespaces actually make a difference to be prepared for them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112563 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprCXX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CGExprCXX.cpp') diff --git a/lib/CodeGen/CGExprCXX.cpp b/lib/CodeGen/CGExprCXX.cpp index 97ee76cebd..61831543b4 100644 --- a/lib/CodeGen/CGExprCXX.cpp +++ b/lib/CodeGen/CGExprCXX.cpp @@ -347,7 +347,7 @@ static bool IsPlacementOperatorNewArray(ASTContext &Ctx, const FunctionDecl *Fn) { // Must be in global scope. Note that allocation functions can't be // declared in namespaces. - if (!Fn->getDeclContext()->getLookupContext()->isFileContext()) + if (!Fn->getDeclContext()->getRedeclContext()->isFileContext()) return false; // Signature must be void *operator new[](size_t, void*). -- cgit v1.2.3