mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
microoptimize this hot method, also making it more
consistent with other similar ones. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99997 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -96,9 +96,8 @@ DIDescriptor DIDescriptor::getDescriptorField(unsigned Elt) const {
|
|||||||
if (DbgNode == 0)
|
if (DbgNode == 0)
|
||||||
return DIDescriptor();
|
return DIDescriptor();
|
||||||
|
|
||||||
if (Elt < DbgNode->getNumOperands() && DbgNode->getOperand(Elt))
|
if (Elt < DbgNode->getNumOperands())
|
||||||
return DIDescriptor(dyn_cast<MDNode>(DbgNode->getOperand(Elt)));
|
return DIDescriptor(dyn_cast_or_null<MDNode>(DbgNode->getOperand(Elt)));
|
||||||
|
|
||||||
return DIDescriptor();
|
return DIDescriptor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user