aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/LiveVariables.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-08-23 23:05:04 +0000
committerTed Kremenek <kremenek@apple.com>2011-08-23 23:05:04 +0000
commitadfb445466fa85fadb67ca8a4cb24979a26796b0 (patch)
tree15857369a5cee38c577c625b5359805d1b5c9881 /clang/lib/Analysis/LiveVariables.cpp
parent4183a62a533f3f1543d65a14c050878c79370adf (diff)
downloadllvm-adfb445466fa85fadb67ca8a4cb24979a26796b0.zip
llvm-adfb445466fa85fadb67ca8a4cb24979a26796b0.tar.gz
llvm-adfb445466fa85fadb67ca8a4cb24979a26796b0.tar.bz2
Constify the result of CFGStmt::getStmt().
llvm-svn: 138408
Diffstat (limited to 'clang/lib/Analysis/LiveVariables.cpp')
-rw-r--r--clang/lib/Analysis/LiveVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/LiveVariables.cpp b/clang/lib/Analysis/LiveVariables.cpp
index 2a41bf8..fb50f4c 100644
--- a/clang/lib/Analysis/LiveVariables.cpp
+++ b/clang/lib/Analysis/LiveVariables.cpp
@@ -406,7 +406,7 @@ LiveVariables::computeLiveness(AnalysisContext &AC,
for (CFGBlock::const_iterator bi = block->begin(), be = block->end();
bi != be; ++bi) {
if (const CFGStmt *cs = bi->getAs<CFGStmt>()) {
- if (BinaryOperator *BO = dyn_cast<BinaryOperator>(cs->getStmt())) {
+ if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(cs->getStmt())) {
if (BO->getOpcode() == BO_Assign) {
if (const DeclRefExpr *DR =
dyn_cast<DeclRefExpr>(BO->getLHS()->IgnoreParens())) {