diff options
author | Reid Kleckner <rnk@google.com> | 2018-04-02 20:00:39 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2018-04-02 20:00:39 +0000 |
commit | cbec0269baeaa572bcfb62fdac7dea708d94c1e9 (patch) | |
tree | 98af7e672bbecd6da6c94975f3269620ca3f9090 /clang/lib/CodeGen/CGVTables.h | |
parent | 227d4399bf32dc87a8307af6f1c86cd5bdde5e08 (diff) | |
download | bcm5719-llvm-cbec0269baeaa572bcfb62fdac7dea708d94c1e9.tar.gz bcm5719-llvm-cbec0269baeaa572bcfb62fdac7dea708d94c1e9.zip |
Fix some DenseMap use-after-rehash bugs and hoist MethodVFTableLocation
This re-lands r328845 with fixes for crbug.com/827810.
The initial motiviation was to hoist MethodVFTableLocation to global
scope so it could be forward declared.
In this patch, I noticed that MicrosoftVTableContext uses some risky
patterns. It has methods that return references to data stored in
DenseMaps. I've made some of them return by value for trivial structs
and I've moved some things into separate allocations.
llvm-svn: 329007
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.h')
0 files changed, 0 insertions, 0 deletions