Relax assertion in ReplaceableMetadataImpl::replaceAllUsesWith().
authorAdrian Prantl <aprantl@apple.com>
Sat, 6 Feb 2016 01:56:55 +0000 (01:56 +0000)
committerAdrian Prantl <aprantl@apple.com>
Sat, 6 Feb 2016 01:56:55 +0000 (01:56 +0000)
commitb925b9c85f36cddbcd69bdcc44f5725cafe0d7b6
tree3f16bec11f2ab871c778989e7d13c8f5a9bcc404
parent41571781c01723a64a0d2fa3e82b1b7f3f2c28dc
Relax assertion in ReplaceableMetadataImpl::replaceAllUsesWith().
There is a legitimate use-case in clang where we need to replace a
temporary placeholder node with the temporary node that may be a
forward declaration.

<rdar://problem/24493203>

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