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/Analysis/UninitializedValues.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/Analysis/UninitializedValues.cpp')
-rw-r--r-- | clang/lib/Analysis/UninitializedValues.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Analysis/UninitializedValues.cpp b/clang/lib/Analysis/UninitializedValues.cpp index 77da2427c0f..f0debc1f3e9 100644 --- a/clang/lib/Analysis/UninitializedValues.cpp +++ b/clang/lib/Analysis/UninitializedValues.cpp @@ -164,7 +164,7 @@ ValueVector &CFGBlockValues::lazyCreate(ValueVector *&bv) { /// This function pattern matches for a '&&' or '||' that appears at /// the beginning of a CFGBlock that also (1) has a terminator and /// (2) has no other elements. If such an expression is found, it is returned. -static BinaryOperator *getLogicalOperatorInChain(const CFGBlock *block) { +static const BinaryOperator *getLogicalOperatorInChain(const CFGBlock *block) { if (block->empty()) return 0; @@ -172,7 +172,7 @@ static BinaryOperator *getLogicalOperatorInChain(const CFGBlock *block) { if (!cstmt) return 0; - BinaryOperator *b = dyn_cast_or_null<BinaryOperator>(cstmt->getStmt()); + const BinaryOperator *b = dyn_cast_or_null<BinaryOperator>(cstmt->getStmt()); if (!b || !b->isLogicalOp()) return 0; @@ -653,7 +653,7 @@ static bool runOnBlock(const CFGBlock *block, const CFG &cfg, for (CFGBlock::const_iterator I = block->begin(), E = block->end(); I != E; ++I) { if (const CFGStmt *cs = dyn_cast<CFGStmt>(&*I)) { - tf.Visit(cs->getStmt()); + tf.Visit(const_cast<Stmt*>(cs->getStmt())); } } tf.ProcessUses(); |