We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30defe0 commit 3918491Copy full SHA for 3918491
llvm/include/llvm/IR/ConstantRangeList.h
@@ -59,7 +59,8 @@ class [[nodiscard]] ConstantRangeList {
59
/// Return true if this list contains no members.
60
bool empty() const { return Ranges.empty(); }
61
62
- /// Get the bit width of this ConstantRangeList.
+ /// Get the bit width of this ConstantRangeList. It is invalid to call this
63
+ /// with an empty range.
64
uint32_t getBitWidth() const { return Ranges.front().getBitWidth(); }
65
66
/// Return the number of ranges in this ConstantRangeList.
0 commit comments