diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-19 18:45:35 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-19 18:45:35 +0000 |
| commit | de03a8b38d88d278e39e6218ab2f0f7de6a3c161 (patch) | |
| tree | 1e5857cdfe031c5770da02b20821b5f35806da3f /llvm/lib/Transforms/Utils/ValueMapper.cpp | |
| parent | f13404536548c6de78369726250fd252f534808b (diff) | |
| download | bcm5719-llvm-de03a8b38d88d278e39e6218ab2f0f7de6a3c161.tar.gz bcm5719-llvm-de03a8b38d88d278e39e6218ab2f0f7de6a3c161.zip | |
IR: Add isUniqued() and isTemporary()
Change `MDNode::isDistinct()` to only apply to 'distinct' nodes (not
temporaries), and introduce `MDNode::isUniqued()` and
`MDNode::isTemporary()` for the other two possibilities.
llvm-svn: 226482
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/ValueMapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index 477fba42412..5d89858e527 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp @@ -282,7 +282,7 @@ static Metadata *mapUniquedNode(const UniquableMDNode *Node, ValueToValueMapTy &VM, RemapFlags Flags, ValueMapTypeRemapper *TypeMapper, ValueMaterializer *Materializer) { - assert(!Node->isDistinct() && "Expected uniqued node"); + assert(Node->isUniqued() && "Expected uniqued node"); // Create a dummy node in case we have a metadata cycle. MDNodeFwdDecl *Dummy = MDNode::getTemporary(Node->getContext(), None); |

