forked from OSchip/llvm-project
Get the code decl from the initial location context.
llvm-svn: 79590
This commit is contained in:
parent
6d886b056a
commit
871918c76f
|
@ -502,7 +502,7 @@ Store BasicStoreManager::getInitialStore(const LocationContext *InitLoc) {
|
|||
|
||||
// Handle implicit parameters.
|
||||
if (ImplicitParamDecl* PD = dyn_cast<ImplicitParamDecl>(ND)) {
|
||||
const Decl& CD = StateMgr.getCodeDecl();
|
||||
const Decl& CD = *InitLoc->getDecl();
|
||||
if (const ObjCMethodDecl* MD = dyn_cast<ObjCMethodDecl>(&CD)) {
|
||||
if (MD->getSelfDecl() == PD) {
|
||||
// Create a region for "self".
|
||||
|
|
Loading…
Reference in New Issue