mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +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:
parent
ff741ab709
commit
7a2f3e0b46
@ -96,9 +96,8 @@ DIDescriptor DIDescriptor::getDescriptorField(unsigned Elt) const {
|
||||
if (DbgNode == 0)
|
||||
return DIDescriptor();
|
||||
|
||||
if (Elt < DbgNode->getNumOperands() && DbgNode->getOperand(Elt))
|
||||
return DIDescriptor(dyn_cast<MDNode>(DbgNode->getOperand(Elt)));
|
||||
|
||||
if (Elt < DbgNode->getNumOperands())
|
||||
return DIDescriptor(dyn_cast_or_null<MDNode>(DbgNode->getOperand(Elt)));
|
||||
return DIDescriptor();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user