dexonsmith added a comment.

> Consider making the FileEntryRef changes here the default -- it doesn't make 
> sense to me that FileEntryRef == or DenseMap would match FileEntry pointer 
> semantics instead of filename semantics.

Yeah, that was something I added, and I agree it's unfortunate / hard to reason 
about. It was a concession to make it easier to replace `FileEntry*` with 
`FileEntryRef` seamlessly in lots of places with NFC; the logic is "we want 
only one entry FileEntry in this map; let the first one win". Maybe most places 
would prefer a functionality change though, and, either way, the DenseMaps that 
need this unique-by-`FileEntry*` behaviour should probably be the ones using a 
custom DenseMapInfo.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137304

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

Reply via email to