diff options
author | Zachary Turner <zturner@google.com> | 2015-03-24 18:56:08 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-03-24 18:56:08 +0000 |
commit | a98fac28aa7636998158a3ac1bf764bf14ca8570 (patch) | |
tree | a6b5bbeacc6f7feb5e675d412084a99e6b4061d9 /llvm/lib/CodeGen/WinEHPrepare.cpp | |
parent | 0783ab9a7f92318830d94d41857c36726cf84eaa (diff) | |
download | bcm5719-llvm-a98fac28aa7636998158a3ac1bf764bf14ca8570.tar.gz bcm5719-llvm-a98fac28aa7636998158a3ac1bf764bf14ca8570.zip |
Fix error introduced by changing function signatures.
Since ClangASTSource::layoutRecordType() was overriding a virtual
function in the base, this was inadvertently causing a new method
to be introduced rather than an override. To fix this all method
signatures are changed back to taking DenseMaps, and the `override`
keyword is added to make sure this type of error doesn't happen
again.
To keep the original fix intact, which is that fields and bases
must be added in offset order, the ImportOffsetMap() function
now copies the DenseMap into a vector and then sorts the vector
on the value type (e.g. the offset) before iterating over the
sorted vector and inserting the items.
llvm-svn: 233099
Diffstat (limited to 'llvm/lib/CodeGen/WinEHPrepare.cpp')
0 files changed, 0 insertions, 0 deletions