forked from OSchip/llvm-project
parent
6a1457e6c1
commit
3a7434582d
|
@ -946,10 +946,9 @@ void ConsumedStmtVisitor::VisitVarDecl(const VarDecl *Var) {
|
|||
namespace clang {
|
||||
namespace consumed {
|
||||
|
||||
void splitVarStateForIf(const IfStmt * IfNode, const VarTestResult &Test,
|
||||
ConsumedStateMap *ThenStates,
|
||||
ConsumedStateMap *ElseStates) {
|
||||
|
||||
static void splitVarStateForIf(const IfStmt *IfNode, const VarTestResult &Test,
|
||||
ConsumedStateMap *ThenStates,
|
||||
ConsumedStateMap *ElseStates) {
|
||||
ConsumedState VarState = ThenStates->getState(Test.Var);
|
||||
|
||||
if (VarState == CS_Unknown) {
|
||||
|
@ -964,9 +963,9 @@ void splitVarStateForIf(const IfStmt * IfNode, const VarTestResult &Test,
|
|||
}
|
||||
}
|
||||
|
||||
void splitVarStateForIfBinOp(const PropagationInfo &PInfo,
|
||||
ConsumedStateMap *ThenStates, ConsumedStateMap *ElseStates) {
|
||||
|
||||
static void splitVarStateForIfBinOp(const PropagationInfo &PInfo,
|
||||
ConsumedStateMap *ThenStates,
|
||||
ConsumedStateMap *ElseStates) {
|
||||
const VarTestResult <est = PInfo.getLTest(),
|
||||
&RTest = PInfo.getRTest();
|
||||
|
||||
|
|
|
@ -8187,8 +8187,8 @@ static bool isSetterLikeSelector(Selector sel) {
|
|||
return !isLowercase(str.front());
|
||||
}
|
||||
|
||||
Optional<int> GetNSMutableArrayArgumentIndex(Sema &S, ObjCMessageExpr *Message) {
|
||||
|
||||
static Optional<int> GetNSMutableArrayArgumentIndex(Sema &S,
|
||||
ObjCMessageExpr *Message) {
|
||||
if (S.NSMutableArrayPointer.isNull()) {
|
||||
IdentifierInfo *NSMutableArrayId =
|
||||
S.NSAPIObj->getNSClassId(NSAPI::ClassId_NSMutableArray);
|
||||
|
|
Loading…
Reference in New Issue