From: Nico Weber Date: Thu, 3 Jul 2014 00:38:25 +0000 (+0000) Subject: Address review feedback for r212238. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af80d7285466ad52af71d6cb7526d95a2f14939a;p=clang Address review feedback for r212238. Also, forgot to say in the commit message of r212238: Library authors will see a warning about this issue if they build with -Wsystem-headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212243 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 9feb9e060a..c147034ed5 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -400,8 +400,7 @@ ExprResult InitListChecker::PerformEmptyInit(Sema &SemaRef, bool IsInStd = false; for (NamespaceDecl *ND = dyn_cast(R->getDeclContext()); - ND && !IsInStd; - ND = dyn_cast(ND->getLexicalParent())) { + ND && !IsInStd; ND = dyn_cast(ND->getParent())) { if (SemaRef.getStdNamespace()->InEnclosingNamespaceSetOf(ND)) IsInStd = true; }