Properly use const_cast to fix a cast-away-const error. --- .../clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index 9c611cb..4a3489d 100644 --- a/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/llvm/tools/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;
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
