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:
parent
9d010fffe1
commit
5752ad0abc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue