projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e28840
)
IR: Metadata: Remove unnecessary dyn_cast
author
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Wed, 5 Nov 2014 01:55:06 +0000
(
01:55
+0000)
committer
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Wed, 5 Nov 2014 01:55:06 +0000
(
01:55
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221328
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Metadata.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Metadata.cpp
b/lib/IR/Metadata.cpp
index 34c85004bc219a75b3177701f8380160065f65a7..0b3376c9e9c7b65a953ae6db8666763df39cb1ab 100644
(file)
--- a/
lib/IR/Metadata.cpp
+++ b/
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) {