diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-03-01 03:15:10 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-03-01 03:15:10 +0000 |
commit | 96a7a59119e59da556dcb4f44186255c2336e330 (patch) | |
tree | 5ec8ff4866533803814719555d945347c0056d33 /clang/lib/Analysis/UninitializedValuesV2.cpp | |
parent | 9720642c68ff713266ff67987bbd801903b627b0 (diff) | |
download | bcm5719-llvm-96a7a59119e59da556dcb4f44186255c2336e330.tar.gz bcm5719-llvm-96a7a59119e59da556dcb4f44186255c2336e330.zip |
In preparation for fixing PR 6884, rework CFGElement to have getAs<> return pointers instead of fresh CFGElements.
- Also, consoldiate getDtorKind() and getKind() into one "kind".
- Add empty getDestructorDecl() method to CFGImplicitDtor.
llvm-svn: 126738
Diffstat (limited to 'clang/lib/Analysis/UninitializedValuesV2.cpp')
-rw-r--r-- | clang/lib/Analysis/UninitializedValuesV2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/UninitializedValuesV2.cpp b/clang/lib/Analysis/UninitializedValuesV2.cpp index 75eccbf7a3c..0d0bc36db36 100644 --- a/clang/lib/Analysis/UninitializedValuesV2.cpp +++ b/clang/lib/Analysis/UninitializedValuesV2.cpp @@ -146,8 +146,8 @@ static BinaryOperator *getLogicalOperatorInChain(const CFGBlock *block) { if (block->empty()) return 0; - CFGStmt cstmt = block->front().getAs<CFGStmt>(); - BinaryOperator *b = llvm::dyn_cast_or_null<BinaryOperator>(cstmt.getStmt()); + const CFGStmt *cstmt = block->front().getAs<CFGStmt>(); + BinaryOperator *b = llvm::dyn_cast_or_null<BinaryOperator>(cstmt->getStmt()); if (!b || !b->isLogicalOp()) return 0; |