summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-07-20 02:46:11 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-07-20 02:46:11 +0000
commit3e02548d2238d9ae612894c6395e62d1b5ea6923 (patch)
treedf24ea86f1f6a6288282ab9c28d6d888e037be59
parentc2acbe0f45d2252c27304d3d9f66b969c0b388ea (diff)
downloadbcm5719-llvm-3e02548d2238d9ae612894c6395e62d1b5ea6923.tar.gz
bcm5719-llvm-3e02548d2238d9ae612894c6395e62d1b5ea6923.zip
constify.
llvm-svn: 108801
-rw-r--r--clang/lib/Checker/BasicStore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Checker/BasicStore.cpp b/clang/lib/Checker/BasicStore.cpp
index 62c8d9c248a..3c781138ace 100644
--- a/clang/lib/Checker/BasicStore.cpp
+++ b/clang/lib/Checker/BasicStore.cpp
@@ -406,10 +406,10 @@ Store BasicStoreManager::getInitialStore(const LocationContext *InitLoc) {
Store St = VBFactory.GetEmptyMap().getRoot();
for (LVDataTy::decl_iterator I=D.begin_decl(), E=D.end_decl(); I != E; ++I) {
- NamedDecl* ND = const_cast<NamedDecl*>(I->first);
+ const NamedDecl* ND = I->first;
// Handle implicit parameters.
- if (ImplicitParamDecl* PD = dyn_cast<ImplicitParamDecl>(ND)) {
+ if (const ImplicitParamDecl* PD = dyn_cast<ImplicitParamDecl>(ND)) {
const Decl& CD = *InitLoc->getDecl();
if (const ObjCMethodDecl* MD = dyn_cast<ObjCMethodDecl>(&CD)) {
if (MD->getSelfDecl() == PD) {
OpenPOWER on IntegriCloud