Constify the result of CFGStmt::getStmt().

llvm-svn: 138408
This commit is contained in:
Ted Kremenek
2011-08-23 23:05:04 +00:00
parent 4183a62a53
commit adfb445466
7 changed files with 28 additions and 26 deletions

View File

@@ -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())) {