diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-11-05 01:55:06 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-11-05 01:55:06 +0000 |
commit | b28deb19673f469703997c66655bcde5d2326b8d (patch) | |
tree | c9f3c58017093609fd4bd88709246efd033c641a /llvm/lib/IR/Metadata.cpp | |
parent | 5d85d57f65640bd1766f073b99836a82e1ccc230 (diff) | |
download | bcm5719-llvm-b28deb19673f469703997c66655bcde5d2326b8d.tar.gz bcm5719-llvm-b28deb19673f469703997c66655bcde5d2326b8d.zip |
IR: Metadata: Remove unnecessary dyn_cast
llvm-svn: 221328
Diffstat (limited to 'llvm/lib/IR/Metadata.cpp')
-rw-r--r-- | llvm/lib/IR/Metadata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp index 34c85004bc2..0b3376c9e9c 100644 --- a/llvm/lib/IR/Metadata.cpp +++ b/llvm/lib/IR/Metadata.cpp @@ -575,7 +575,7 @@ unsigned NamedMDNode::getNumOperands() const { MDNode *NamedMDNode::getOperand(unsigned i) const { assert(i < getNumOperands() && "Invalid Operand number!"); - return dyn_cast<MDNode>(&*getNMDOps(Operands)[i]); + return &*getNMDOps(Operands)[i]; } void NamedMDNode::addOperand(MDNode *M) { |