summaryrefslogtreecommitdiffstats
path: root/lib/Analysis/UninitializedValues.cpp
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-05-22 21:36:38 +0000
committerdim <dim@FreeBSD.org>2012-05-22 21:36:38 +0000
commite6d4a67235c1e62e3e292b1a167c5c6b9610a706 (patch)
tree1bfa44f5a9427d658426ac7786a70741e36d1bc8 /lib/Analysis/UninitializedValues.cpp
parent822bde9df508e0b9afac5e581b0d6ab403417a28 (diff)
downloadFreeBSD-src-e6d4a67235c1e62e3e292b1a167c5c6b9610a706.zip
FreeBSD-src-e6d4a67235c1e62e3e292b1a167c5c6b9610a706.tar.gz
Vendor import of clang release_31 final r156748:
http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_31/final@156748
Diffstat (limited to 'lib/Analysis/UninitializedValues.cpp')
-rw-r--r--lib/Analysis/UninitializedValues.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/UninitializedValues.cpp b/lib/Analysis/UninitializedValues.cpp
index 6e5da25..1c7e6b6 100644
--- a/lib/Analysis/UninitializedValues.cpp
+++ b/lib/Analysis/UninitializedValues.cpp
@@ -168,7 +168,8 @@ static const BinaryOperator *getLogicalOperatorInChain(const CFGBlock *block) {
if (block->empty())
return 0;
- const CFGStmt *cstmt = block->front().getAs<CFGStmt>();
+ CFGElement front = block->front();
+ const CFGStmt *cstmt = front.getAs<CFGStmt>();
if (!cstmt)
return 0;
OpenPOWER on IntegriCloud