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)
commit698be08c841091c73ca7c1c6ead1c3027e9f5169
tree7aa83a17ef8e5a89c09b38c9b56e042e35cac38b
parent29ad7506e199e4bcca1bfa092ead6fd0ce220ae3
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).

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