IR: Remove an invalid assertion when replacing resolved operands
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 13 Jan 2015 00:46:34 +0000 (00:46 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 13 Jan 2015 00:46:34 +0000 (00:46 +0000)
commit845755c4bb6c55eca84700060de706331ba77a71
treeed0ff70b5d88fb80d53b49502ee77d5f96193ffd
parenta982e4f82bd369ead2194db441cb5892fd54d218
IR: Remove an invalid assertion when replacing resolved operands

This adds back the testcase from r225738, and adds to it.  Looks like we
need both sides for now (the assertion was incorrect both ways, and
although it seemed reasonable (when written correctly) it wasn't
particularly important).

llvm-svn: 225745
llvm/lib/IR/Metadata.cpp
llvm/unittests/IR/MetadataTest.cpp