aaron.ballman added a comment.

I think this looks reasonable, but @delesley should weigh in.



================
Comment at: clang/lib/Analysis/ThreadSafety.cpp:2415
     bool LocksetInitialized = false;
     SmallVector<CFGBlock *, 8> SpecialBlocks;
     for (CFGBlock::const_pred_iterator PI = CurrBlock->pred_begin(),
----------------
This can be removed now, correct?


================
Comment at: clang/lib/Analysis/ThreadSafety.cpp:2448
+        const Stmt *Terminator = (*PI)->getTerminatorStmt();
+        bool IsLoop = Terminator && isa<ContinueStmt>(Terminator);
+        intersectAndWarn(
----------------
clang-tidy got this one right. :-)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106715/new/

https://reviews.llvm.org/D106715

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to