[PATCH] D120723: [pseudo] Fix an out-of-bound error in LRTable::find.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 1 06:55:14 PST 2022


sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/Tooling/Syntax/Pseudo/LRTable.cpp:115
       TargetedStates, [&Src](LRTable::StateID S) { return S < Src; });
-  if (It == TargetedStates.end())
+  if (Start == TargetedStates.end())
     return {};
----------------
I think this check is no longer needed


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120723



More information about the cfe-commits mailing list