diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-08-21 02:58:11 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-08-21 02:58:11 +0000 |
commit | 871918c76f9dc6858aaa7c1929237addacbbd25c (patch) | |
tree | 768012d74b2adff623ec77842b5013e8e2ca3b5a /clang/lib/Analysis/BasicStore.cpp | |
parent | 6d886b056ab13076ea20ed8c7bd0f21cb1a3042a (diff) | |
download | bcm5719-llvm-871918c76f9dc6858aaa7c1929237addacbbd25c.tar.gz bcm5719-llvm-871918c76f9dc6858aaa7c1929237addacbbd25c.zip |
Get the code decl from the initial location context.
llvm-svn: 79590
Diffstat (limited to 'clang/lib/Analysis/BasicStore.cpp')
-rw-r--r-- | clang/lib/Analysis/BasicStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BasicStore.cpp b/clang/lib/Analysis/BasicStore.cpp index aed5bdc66be..f6d3d35f749 100644 --- a/clang/lib/Analysis/BasicStore.cpp +++ b/clang/lib/Analysis/BasicStore.cpp @@ -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". |