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 {
|
auto IsConstant = [&](Metadata *Bound) -> bool {
|
||||||
if (auto *BE = dyn_cast_or_null<DIExpression>(Bound)) {
|
if (auto *BE = dyn_cast_or_null<DIExpression>(Bound)) {
|
||||||
return BE->isConstant()
|
return BE->isConstant() &&
|
||||||
? DIExpression::SignedOrUnsignedConstant::SignedConstant ==
|
DIExpression::SignedOrUnsignedConstant::SignedConstant ==
|
||||||
*BE->isConstant()
|
*BE->isConstant();
|
||||||
: false;
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue