From af80d7285466ad52af71d6cb7526d95a2f14939a Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 3 Jul 2014 00:38:25 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaInit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.40.0