forked from OSchip/llvm-project
[AsmWriter][NFC] Simplify writeDIGenericSubrange
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D107469
This commit is contained in:
parent
ccfc079047
commit
17bc82dd3b
|
@ -1931,10 +1931,9 @@ static void writeDIGenericSubrange(raw_ostream &Out, const DIGenericSubrange *N,
|
|||
|
||||
auto IsConstant = [&](Metadata *Bound) -> bool {
|
||||
if (auto *BE = dyn_cast_or_null<DIExpression>(Bound)) {
|
||||
return BE->isConstant()
|
||||
? DIExpression::SignedOrUnsignedConstant::SignedConstant ==
|
||||
*BE->isConstant()
|
||||
: false;
|
||||
return BE->isConstant() &&
|
||||
DIExpression::SignedOrUnsignedConstant::SignedConstant ==
|
||||
*BE->isConstant();
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue