]> granicus.if.org Git - clang/commit
Fix crash if StmtProfile finds a type-dependent member access for which we have
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 24 Oct 2016 18:47:04 +0000 (18:47 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 24 Oct 2016 18:47:04 +0000 (18:47 +0000)
commitf2b3f9ecc6faaf2a1cac2485b0b045ae6638767d
treea193220af9749c6dc47ad366f160f7adb8ab4a9e
parent27310e29ecddf621aadc35eada44d6807e1abd12
Fix crash if StmtProfile finds a type-dependent member access for which we have
resolved the -> to a call to a specific operator-> function. The particular
test case added here is actually being mishandled: the implicit member access
should not be type-dependent (because it's accessing a non-type-dependent
member of the current instantiation), but calls to a type-dependent operator->
that is a member of the current instantiation would be liable to hit the same
codepath.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284999 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/StmtProfile.cpp
test/SemaTemplate/dependent-type-identity.cpp