diff options
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-12-16 18:52:33 +0000 |
|---|---|---|
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-12-16 18:52:33 +0000 |
| commit | 089c699743614cc99340c694454b4333c44d0198 (patch) | |
| tree | 69da60047a32451224d356f72b076c54534d580c /lldb/scripts/Python/prepare_binding_Python.py | |
| parent | f624ec27b75701f1227eb03a44f3da84920c798d (diff) | |
| download | llvm-089c699743614cc99340c694454b4333c44d0198.zip llvm-089c699743614cc99340c694454b4333c44d0198.tar.gz llvm-089c699743614cc99340c694454b4333c44d0198.tar.bz2 | |
Fix CodeGenPrepare::stripInvariantGroupMetadata
`dropUnknownNonDebugMetadata` takes a list of "known" metadata IDs. The
only reason it worked at all is that `getMetadataID` returns something
unrelated -- it returns the subclass ID of the receiver (which is used
in `dyn_cast` etc.). That does not numerically match
`LLVMContext::MD_invariant_group` and ends up dropping `invariant_group`
along with every other metadata that does not numerically match
`LLVMContext::MD_invariant_group`.
llvm-svn: 289973
Diffstat (limited to 'lldb/scripts/Python/prepare_binding_Python.py')
0 files changed, 0 insertions, 0 deletions
