mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 17:39:16 +00:00
IR: Metadata: Remove unnecessary dyn_cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e288409dc
commit
84dc1b5c92
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user