[PATCH] D121678: [pseudo] Split greatergreater token.

Paul Robinson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 18 06:43:10 PDT 2022


probinson added a comment.

We had the same thing happen downstream.  One of our guys speculates that because some allocations are "owned" by the returned TokenStream, but the returned TokenStream is a temporary, the lifetimes might not be sufficient and some deallocations can happen.
If I change the nested calls `stripComments(cook(lex(Code, Opts), Opts))` to separate calls stored to separate locals, the problem goes away.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121678



More information about the cfe-commits mailing list