summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp2
-rw-r--r--clang/lib/StaticAnalyzer/Core/CFRefCount.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index 70eb2a3c727..5aff7347a6d 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -1586,7 +1586,7 @@ Sema::CheckObjCARCConversion(SourceRange castRange, QualType castType,
"converts between Objective-C and C pointers in -fobjc-arc"))
return;
- unsigned srcKind;
+ unsigned srcKind = 0;
switch (exprACTC) {
case ACTC_none:
srcKind = (castExprType->isPointerType() ? 1 : 0);
diff --git a/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp b/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp
index 33118fa901d..70646e9f8bd 100644
--- a/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp
+++ b/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp
@@ -3582,7 +3582,7 @@ void RetainReleaseChecker::checkPostStmt(const CastExpr *CE,
if (!BE)
return;
- ArgEffect AE;
+ ArgEffect AE = IncRef;
switch (BE->getBridgeKind()) {
case clang::OBC_Bridge:
OpenPOWER on IntegriCloud