[PATCH] D118196: [syntax][pseudo] Implement LR parsing table.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 23 12:36:09 PST 2022


hokein added inline comments.


================
Comment at: clang/lib/Tooling/Syntax/Pseudo/LRTable.cpp:119
+    ++End;
+  return llvm::makeArrayRef(&Actions[Start], &Actions[End]);
+}
----------------
aaron.ballman wrote:
> This is causing an assertion with debug builds on Windows because `Actions[End]` is out of bounds (so the MSVC STL debug assertions catch the issue) for the test cases in this patch.
 this should be `llvm::makeArrayRef(&Actions[Start], End - Start)`. Fixed in 302ca279cb83043ef7d60115eb5ba58f12064a4a.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118196



More information about the cfe-commits mailing list