@@ -505,7 +505,7 @@ void GCChecker::validateValue(const ValueState* VS, CheckerContext &C, SymbolRef
505505int GCChecker::validateValueInner (const ValueState* VS) const {
506506 if (!VS)
507507 return VALID;
508-
508+
509509 if (VS->isPotentiallyFreed ()) {
510510 return FREED;
511511 }
@@ -563,7 +563,7 @@ void GCChecker::logWithDump(const std::string& message, const T &obj) {
563563void GCChecker::log (const std::string& message) {
564564 if (!DEBUG_LOG)
565565 return ;
566-
566+
567567 llvm::errs () << message;
568568 llvm::errs () << " \n " ;
569569}
@@ -1625,7 +1625,7 @@ void GCChecker::checkPreCall(const CallEvent &Call, CheckerContext &C) const {
16251625 C, Sym,
16261626 " Passing non-rooted value as argument to function that may GC" ,
16271627 range);
1628- }
1628+ }
16291629 }
16301630 if (ValState->isNotPinned ()) {
16311631 bool MaybeUnpinned = false ;
@@ -1753,7 +1753,7 @@ bool GCChecker::evalCall(const CallEvent &Call, CheckerContext &C) const {
17531753 State = State->set <GCPinMap>(Region, PinState::getTransitivePin (CurrentDepth));
17541754 } else {
17551755 logWithDump (" - Root and pin" , Region);
1756- State = State->set <GCPinMap>(Region, PinState::getPin (CurrentDepth));
1756+ State = State->set <GCPinMap>(Region, PinState::getPin (CurrentDepth));
17571757 }
17581758 // The Argument array may also be used as a value, so make it rooted
17591759 // SymbolRef ArgArraySym = ArgArray.getAsSymbol();
@@ -1991,7 +1991,7 @@ void GCChecker::checkBind(SVal LVal, SVal RVal, const clang::Stmt *S,
19911991 }
19921992 report_value_error (C, Sym,
19931993 " Saw assignment to root, but missed the allocation" );
1994- }
1994+ }
19951995 } else {
19961996 logWithDump (" - Found ValState for Sym" , RValState);
19971997 validateValue (RValState, C, Sym, " Trying to root value which may have been" );
0 commit comments