diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-23 02:54:53 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-23 02:54:53 +0000 |
commit | 1f19124c70093d2ef0c06eed63ca6080611800a3 (patch) | |
tree | e52cb9a77b8c926a6946a05f18f1d5cbc7481674 /lib/Checker/GRExprEngine.cpp | |
parent | b73279120d67817156717a1625207ee1bbf41477 (diff) |
Delete unnecessary const_cast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRExprEngine.cpp')
-rw-r--r-- | lib/Checker/GRExprEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp index fe45b7f013..e2d3bd6668 100644 --- a/lib/Checker/GRExprEngine.cpp +++ b/lib/Checker/GRExprEngine.cpp @@ -2534,7 +2534,7 @@ void GRExprEngine::VisitDeclStmt(const DeclStmt *DS, ExplodedNode *Pred, return; const VarDecl* VD = dyn_cast<VarDecl>(D); - const Expr* InitEx = const_cast<Expr*>(VD->getInit()); + const Expr* InitEx = VD->getInit(); // FIXME: static variables may have an initializer, but the second // time a function is called those values may not be current. |