IR: Metadata: Detect an RAUW recursion
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 9 Dec 2014 23:04:59 +0000 (23:04 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 9 Dec 2014 23:04:59 +0000 (23:04 +0000)
commitae5224d468f8e4ebe8d1f72bfee8bcc4c36806db
tree6639d5f26bb68bce89bb3256c5b2ae366134ce66
parentc9f47d88217c1e31a9768a71855f99d9a07c4df8
IR: Metadata: Detect an RAUW recursion

Speculatively handle a recursion in
`GenericMDNode::handleChangedOperand()`.  I'm hoping this fixes the
failing hexagon bot [1].

[1]: http://lab.llvm.org:8011/builders/llvm-hexagon-elf/builds/13434

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223849 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Metadata.h
lib/IR/Metadata.cpp