diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-08-23 23:05:04 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-08-23 23:05:04 +0000 |
commit | adfb445466fa85fadb67ca8a4cb24979a26796b0 (patch) | |
tree | 15857369a5cee38c577c625b5359805d1b5c9881 /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | 4183a62a533f3f1543d65a14c050878c79370adf (diff) | |
download | bcm5719-llvm-adfb445466fa85fadb67ca8a4cb24979a26796b0.tar.gz bcm5719-llvm-adfb445466fa85fadb67ca8a4cb24979a26796b0.zip |
Constify the result of CFGStmt::getStmt().
llvm-svn: 138408
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index a555b77296a..6c318f756c2 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -208,7 +208,7 @@ void ExprEngine::processCFGElement(const CFGElement E, case CFGElement::Invalid: llvm_unreachable("Unexpected CFGElement kind."); case CFGElement::Statement: - ProcessStmt(E.getAs<CFGStmt>()->getStmt(), builder); + ProcessStmt(const_cast<Stmt*>(E.getAs<CFGStmt>()->getStmt()), builder); return; case CFGElement::Initializer: ProcessInitializer(E.getAs<CFGInitializer>()->getInitializer(), builder); |