Get the code decl from the initial location context.

llvm-svn: 79590
This commit is contained in:
Zhongxing Xu 2009-08-21 02:58:11 +00:00
parent 6d886b056a
commit 871918c76f
1 changed files with 1 additions and 1 deletions

View File

@ -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".