[cfe-commits] r79590 - /cfe/trunk/lib/Analysis/BasicStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Thu Aug 20 19:58:11 PDT 2009
Author: zhongxingxu
Date: Thu Aug 20 21:58:11 2009
New Revision: 79590
URL: http://llvm.org/viewvc/llvm-project?rev=79590&view=rev
Log:
Get the code decl from the initial location context.
Modified:
cfe/trunk/lib/Analysis/BasicStore.cpp
Modified: cfe/trunk/lib/Analysis/BasicStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BasicStore.cpp?rev=79590&r1=79589&r2=79590&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BasicStore.cpp (original)
+++ cfe/trunk/lib/Analysis/BasicStore.cpp Thu Aug 20 21:58:11 2009
@@ -502,7 +502,7 @@
// 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".
More information about the cfe-commits
mailing list