]> granicus.if.org Git - llvm/commit
IR: Assert that resolve() is only called on uniqued nodes, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 19:25:33 +0000 (19:25 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 19:25:33 +0000 (19:25 +0000)
commit2c22f8dc09b638a375f671b81027f242a9775558
tree923466f7cdb2d7a3655c5e24cdd762ea5ff0d485
parenta0ed724a444208a2296eead4c3590057794ed85c
IR: Assert that resolve() is only called on uniqued nodes, NFC

Add an assertion in `UniquableMDNode::resolve()` to prevent temporaries
from being resolved (once they're merged back in).  Needed to shuffle
order of `resolve()` and `storeDistinctInContext()` to prevent it from
firing.

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