[PATCH] D107469: [LLVM][IR][NFC] Simplify writeDIGenericSubrange
Alf via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 5 13:43:30 PDT 2021
gAlfonso-bit updated this revision to Diff 364603.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107469/new/
https://reviews.llvm.org/D107469
Files:
llvm/lib/IR/AsmWriter.cpp
Index: llvm/lib/IR/AsmWriter.cpp
===================================================================
--- llvm/lib/IR/AsmWriter.cpp
+++ llvm/lib/IR/AsmWriter.cpp
@@ -1931,10 +1931,9 @@
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;
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107469.364603.patch
Type: text/x-patch
Size: 652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210805/94f48d74/attachment.bin>
More information about the llvm-commits
mailing list