diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-08-31 00:36:30 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-08-31 00:36:30 +0000 |
commit | 50c682585fc89c42bf4fb82edf02c0e49315adcc (patch) | |
tree | af82f00a89b4811abb607ec176081a5dd7ca49e8 /clang/lib/CodeGen | |
parent | 4f08c96a8b5b152872947cc4a6914e74984c95bf (diff) | |
download | bcm5719-llvm-50c682585fc89c42bf4fb82edf02c0e49315adcc.tar.gz bcm5719-llvm-50c682585fc89c42bf4fb82edf02c0e49315adcc.zip |
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.
llvm-svn: 112563
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp index 97ee76cebda..61831543b41 100644 --- a/clang/lib/CodeGen/CGExprCXX.cpp +++ b/clang/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*). |