Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analyzer] Avoid a crash in a debug printout function (#79446)
Previously the function `RangeConstraintManager::printValue()` crashed when it encountered an empty rangeset (because `RangeSet::getBitwidth()` and `RangeSet::isUnsigned()` assert that the rangeset is not empty). This commit adds a special case that avoids this behavior. As `printValue()` is only used by the checker debug.ExprInspection (and during manual debugging), the impacts of this commit are very limited. --------- Co-authored-by: Balazs Benics <benicsbalazs@gmail.com>
- Loading branch information
9b71393
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got an automatic email about a buildbot failure that's supposedly connected to this commit: https://lab.llvm.org/buildbot/#/builders/269/builds/4342
It complains about unexpected symbols
and missing <csstddef> in some googletest files
but I'm fairly sure that these issues are both completely unrelated to my change (and I'm not competent to investigate them in detail, because I'm not familiar with the systems that produced them).