From 96a7a59119e59da556dcb4f44186255c2336e330 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 1 Mar 2011 03:15:10 +0000 Subject: 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 --- clang/lib/Analysis/UninitializedValuesV2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Analysis/UninitializedValuesV2.cpp') 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(); - BinaryOperator *b = llvm::dyn_cast_or_null(cstmt.getStmt()); + const CFGStmt *cstmt = block->front().getAs(); + BinaryOperator *b = llvm::dyn_cast_or_null(cstmt->getStmt()); if (!b || !b->isLogicalOp()) return 0; -- cgit v1.2.3