]> granicus.if.org Git - clang/commit
Itanium mangler: don't trip an assertion when unresolved members have implicit bases.
authorDouglas Gregor <dgregor@apple.com>
Thu, 21 May 2015 18:28:18 +0000 (18:28 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 21 May 2015 18:28:18 +0000 (18:28 +0000)
commitf6b91e6f16ad19025b2f15ab35e7853008c9788b
treef6a63f77465dcdc086565df03356e36a3201bf1a
parent384ba28ba1769530821c2b4ed2016b32d9447bec
Itanium mangler: don't trip an assertion when unresolved members have implicit bases.

When we find a member of the current instantation, the base of the
unresolved member expression is implicit; use nullptr for such
bases. This is not a change in behavior: the AST already contains null
in such cases, so non-asserts builds do the right thing already. Fixes
rdar://problem/21020559.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237929 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ItaniumMangle.cpp
test/CodeGenCXX/mangle-exprs.cpp