summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2013-01-15 22:09:45 +0000
committerDavid Greene <greened@obbligato.org>2013-01-15 22:09:45 +0000
commit0d5a34bcadd87b54ba91ff1e1b53c71099cc4e0e (patch)
tree776aa560f6721a7e14e103ddaa29fb76dd5e5f24 /clang/lib
parentbae0e356b638eecf681809acb897354dd293aa14 (diff)
downloadbcm5719-llvm-0d5a34bcadd87b54ba91ff1e1b53c71099cc4e0e.tar.gz
bcm5719-llvm-0d5a34bcadd87b54ba91ff1e1b53c71099cc4e0e.zip
Fix Cast
Properly use const_cast to fix a cast-away-const error. llvm-svn: 172561
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index f2b8c3026d1..a1fc29eb7e4 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -1043,7 +1043,8 @@ bool ExprEngine::replayWithoutInlining(ExplodedNode *N,
// Add the special flag to GDM to signal retrying with no inlining.
// Note, changing the state ensures that we are not going to cache out.
ProgramStateRef NewNodeState = BeforeProcessingCall->getState();
- NewNodeState = NewNodeState->set<ReplayWithoutInlining>((void*)CE);
+ NewNodeState =
+ NewNodeState->set<ReplayWithoutInlining>(const_cast<Stmt *>(CE));
// Make the new node a successor of BeforeProcessingCall.
bool IsNew = false;
OpenPOWER on IntegriCloud