jansvoboda11 added a comment.

Thank you!

I'm pretty sure it's this commit that causes the failure.

I now see that `HeaderSearch::LookupFile` callers perform pointer arithmetics 
on the out-parameter `const DirectoryLookup *&CurDir`. They rely on the fact 
that all `DirectoryLookup` instances are in contiguous memory. That was true 
when they were stored in `std::vector<DirectoryLookup>`, but since they are 
allocated in `llvm::SpecificBumpPtrAllocator<DirectoryLookup>` after this 
patch, that assumption is no longer true.

I have reverted the patch for now and will look into fixing this.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116750

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

Reply via email to