IR: Fix an inverted assertion when replacing resolved operands
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 13 Jan 2015 00:10:38 +0000 (00:10 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 13 Jan 2015 00:10:38 +0000 (00:10 +0000)
commit4fef722974dd847a26cb2bdad6fd4a298e1edd1f
tree6a8bcdb2d9a77ad0ba8fb0401a055744c4ea8e8c
parent7472c760521ad240b5a389d71a7b30037bd84b56
IR: Fix an inverted assertion when replacing resolved operands

Add a unit test, since this bug was only exposed by clang tests.  Thanks
to Rafael for tracking this down!

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