diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-23 02:49:07 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-23 02:49:07 +0000 |
commit | b73279120d67817156717a1625207ee1bbf41477 (patch) | |
tree | cc9cc91a5db94cfb8ab525248e2f0405e9cc4e6c /include/clang/Analysis/ProgramPoint.h | |
parent | ad23ebe22b7e52e3875981eeb46a1fd61a7554fb (diff) |
AnalysisContext is not const.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/ProgramPoint.h')
-rw-r--r-- | include/clang/Analysis/ProgramPoint.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Analysis/ProgramPoint.h b/include/clang/Analysis/ProgramPoint.h index 08e08f2ad0..c71c3059ff 100644 --- a/include/clang/Analysis/ProgramPoint.h +++ b/include/clang/Analysis/ProgramPoint.h @@ -323,8 +323,9 @@ public: return static_cast<const Stmt *>(getData1()); } - const AnalysisContext *getCalleeContext() const { - return static_cast<const AnalysisContext *>(getData2()); + AnalysisContext *getCalleeContext() const { + return const_cast<AnalysisContext *>( + static_cast<const AnalysisContext *>(getData2())); } static bool classof(const ProgramPoint *Location) { |