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.

llvm-svn: 212243
This commit is contained in:
Nico Weber 2014-07-03 00:38:25 +00:00
parent 9d010fffe1
commit 5752ad0abc
1 changed files with 1 additions and 2 deletions

View File

@ -400,8 +400,7 @@ ExprResult InitListChecker::PerformEmptyInit(Sema &SemaRef,
bool IsInStd = false;
for (NamespaceDecl *ND = dyn_cast<NamespaceDecl>(R->getDeclContext());
ND && !IsInStd;
ND = dyn_cast<NamespaceDecl>(ND->getLexicalParent())) {
ND && !IsInStd; ND = dyn_cast<NamespaceDecl>(ND->getParent())) {
if (SemaRef.getStdNamespace()->InEnclosingNamespaceSetOf(ND))
IsInStd = true;
}