Add forgotten to commit protection and check clause.

This should have landed in 7554be9571.
This commit is contained in:
Vassil Vassilev 2018-03-09 23:41:19 +01:00 committed by sftnight
parent 01dbb6d9d5
commit 7b70052776
2 changed files with 9 additions and 4 deletions

View File

@ -413,10 +413,14 @@ namespace {
m_gClingVD = cast<VarDecl>(utils::Lookup::Named(m_Sema, "gCling", NSD));
NSD = utils::Lookup::Namespace(m_Sema, "internal", NSD);
m_Sema->LookupQualifiedName(R, m_Sema->getStdNamespace());
assert(!R.empty() && "Cannot find std::addressof");
m_UnresolvedStdAddressOf
= m_Sema->BuildDeclarationNameExpr(CSS, R, /*ADL*/ false).get();
// FIXME: We should special case the child interpreter. Having to do that
// looks like a design flaw.
if (!m_isChildInterpreter) {
m_Sema->LookupQualifiedName(R, m_Sema->getStdNamespace());
assert(!R.empty() && "Cannot find std::addressof");
m_UnresolvedStdAddressOf
= m_Sema->BuildDeclarationNameExpr(CSS, R, /*ADL*/ false).get();
}
}
R.clear();

View File

@ -115,3 +115,4 @@ struct OverloadedAddrOf {
}
};
OverloadedAddrOf overloadedAddrOf
// CHECK: (OverloadedAddrOf &) @0x{{[0-9a-f]+}}