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

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

Reply via email to