[llvm] r221328 - IR: Metadata: Remove unnecessary dyn_cast
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Nov 4 17:55:06 PST 2014
Author: dexonsmith
Date: Tue Nov 4 19:55:06 2014
New Revision: 221328
URL: http://llvm.org/viewvc/llvm-project?rev=221328&view=rev
Log:
IR: Metadata: Remove unnecessary dyn_cast
Modified:
llvm/trunk/lib/IR/Metadata.cpp
Modified: llvm/trunk/lib/IR/Metadata.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Metadata.cpp?rev=221328&r1=221327&r2=221328&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Metadata.cpp (original)
+++ llvm/trunk/lib/IR/Metadata.cpp Tue Nov 4 19:55:06 2014
@@ -575,7 +575,7 @@ unsigned NamedMDNode::getNumOperands() c
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) {
More information about the llvm-commits
mailing list