[PATCH] D70378: [LLD][COFF] Fix missing cache cleanup in COFF::link()
Erik McClure via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 09:18:56 PST 2019
blackhole12 added a comment.
After further testing, this actually doesn't work, but only if you are loading an associated PDB file. I have no idea what's going on, because I don't understand the internals of TypeServerSource, but it's throwing an assertion error at DebugTypes.cpp:191
assert(it != TypeServerSource::instances.end());
My previous fix, which only cleared the caches at the very end of the link() call, does work in this scenario, which suggests to me that the TypeServerSource cache is likely being cleared too often. I highly suggest wrapping this fix into https://reviews.llvm.org/D70766, because it is clear this code is simply far too entwined with itself to properly reason about.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70378/new/
https://reviews.llvm.org/D70378
More information about the llvm-commits
mailing list