[pseudo] Fix an out-of-bound access for LRTable::Actions.
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 3 Mar 2022 13:21:31 +0000 (14:21 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 3 Mar 2022 13:27:44 +0000 (14:27 +0100)
commit28ccf326725d0fea8648834c8acdbdfe3aa40d7a
tree3c74adef8781625ea8fde1e7c27fca1602f4b8f3
parent6fc753adaf86d18de1f660abe8e72c0cd870a371
[pseudo] Fix an out-of-bound access for LRTable::Actions.

Without this patch, when End == Start, we access Actions[Actions.end()]
though we return an empty result.
This fixes an assertion failure in MSVC STL debug build.
clang/lib/Tooling/Syntax/Pseudo/LRTable.cpp