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)
commitf08b8b4be6dd23f7766d5036575ade5f7d7fd6e2
tree7531a12e6566ca7d003be7eb2c171983e8ba3b74
parent105acf7885a20e6573943246026c3dd30d8d1a78
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.

llvm-svn: 226489
llvm/lib/IR/Metadata.cpp