diff options
Diffstat (limited to 'clang/lib/CodeGen/CGExprCXX.cpp')
-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*). |