@@ -381,7 +381,7 @@ void FuchsiaHandleChecker::checkPostCall(const CallEvent &Call,
381381 SymbolRef RetSym = Call.getReturnValue ().getAsSymbol ();
382382 Notes.push_back ([RetSym, FuncDecl](BugReport &BR) -> std::string {
383383 auto *PathBR = static_cast <PathSensitiveBugReport *>(&BR);
384- if (auto IsInteresting = PathBR->getInterestingnessKind (RetSym)) {
384+ if (PathBR->getInterestingnessKind (RetSym)) {
385385 std::string SBuf;
386386 llvm::raw_string_ostream OS (SBuf);
387387 OS << " Function '" << FuncDecl->getDeclName ()
@@ -397,7 +397,7 @@ void FuchsiaHandleChecker::checkPostCall(const CallEvent &Call,
397397 SymbolRef RetSym = Call.getReturnValue ().getAsSymbol ();
398398 Notes.push_back ([RetSym, FuncDecl](BugReport &BR) -> std::string {
399399 auto *PathBR = static_cast <PathSensitiveBugReport *>(&BR);
400- if (auto IsInteresting = PathBR->getInterestingnessKind (RetSym)) {
400+ if (PathBR->getInterestingnessKind (RetSym)) {
401401 std::string SBuf;
402402 llvm::raw_string_ostream OS (SBuf);
403403 OS << " Function '" << FuncDecl->getDeclName ()
@@ -431,7 +431,7 @@ void FuchsiaHandleChecker::checkPostCall(const CallEvent &Call,
431431 } else {
432432 Notes.push_back ([Handle, ParamDiagIdx](BugReport &BR) -> std::string {
433433 auto *PathBR = static_cast <PathSensitiveBugReport *>(&BR);
434- if (auto IsInteresting = PathBR->getInterestingnessKind (Handle)) {
434+ if (PathBR->getInterestingnessKind (Handle)) {
435435 std::string SBuf;
436436 llvm::raw_string_ostream OS (SBuf);
437437 OS << " Handle released through " << ParamDiagIdx
@@ -445,7 +445,7 @@ void FuchsiaHandleChecker::checkPostCall(const CallEvent &Call,
445445 } else if (hasFuchsiaAttr<AcquireHandleAttr>(PVD)) {
446446 Notes.push_back ([Handle, ParamDiagIdx](BugReport &BR) -> std::string {
447447 auto *PathBR = static_cast <PathSensitiveBugReport *>(&BR);
448- if (auto IsInteresting = PathBR->getInterestingnessKind (Handle)) {
448+ if (PathBR->getInterestingnessKind (Handle)) {
449449 std::string SBuf;
450450 llvm::raw_string_ostream OS (SBuf);
451451 OS << " Handle allocated through " << ParamDiagIdx
@@ -459,7 +459,7 @@ void FuchsiaHandleChecker::checkPostCall(const CallEvent &Call,
459459 } else if (hasFuchsiaUnownedAttr<AcquireHandleAttr>(PVD)) {
460460 Notes.push_back ([Handle, ParamDiagIdx](BugReport &BR) -> std::string {
461461 auto *PathBR = static_cast <PathSensitiveBugReport *>(&BR);
462- if (auto IsInteresting = PathBR->getInterestingnessKind (Handle)) {
462+ if (PathBR->getInterestingnessKind (Handle)) {
463463 std::string SBuf;
464464 llvm::raw_string_ostream OS (SBuf);
465465 OS << " Unowned handle allocated through " << ParamDiagIdx
0 commit comments