Remove cause of misc. "variable might be used uninitialized in this function" warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45546 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp
index c01cdf5..d20be96 100644
--- a/AST/ASTContext.cpp
+++ b/AST/ASTContext.cpp
@@ -1384,7 +1384,7 @@
if (!rhsQI && !rhsQID && !rhsID)
return false;
- unsigned numRhsProtocols;
+ unsigned numRhsProtocols = 0;
ObjcProtocolDecl **rhsProtoList;
if (rhsQI) {
numRhsProtocols = rhsQI->getNumProtocols();
@@ -1435,7 +1435,7 @@
if (!lhsQI && !lhsQID && !lhsID)
return false;
- unsigned numLhsProtocols;
+ unsigned numLhsProtocols = 0;
ObjcProtocolDecl **lhsProtoList;
if (lhsQI) {
numLhsProtocols = lhsQI->getNumProtocols();