summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-mdnode-badref.ll
Commit message (Collapse)AuthorAgeFilesLines
* AsmParser: Don't crash on unresolved !tbaaDuncan P. N. Exon Smith2016-04-061-1/+1
| | | | | | | | Instead of crashing, give a nice error. As a drive-by, fix the location associated with the errors for unresolved metadata (the location was off by one token). llvm-svn: 265507
* IR: Update references to temporaries before deletingDuncan P. N. Exon Smith2015-01-221-0/+5
During `MDNode::deleteTemporary()`, call `replaceAllUsesWith(nullptr)` to update all tracking references to `nullptr`. This fixes PR22280, where inverted destruction order between tracking references and the temporaries themselves caused a use-after-free in `LLParser`. An alternative fix would be to add an assertion that there are no users, and continue to fix inverted destruction order in clients (like `LLParser`), but instead I decided to make getting-teardown-right easy. (If someone disagrees let me know.) llvm-svn: 226866
OpenPOWER on IntegriCloud