Skip to content

Commit 3918491

Browse files
committed
Add comment
1 parent 30defe0 commit 3918491

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/IR/ConstantRangeList.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ class [[nodiscard]] ConstantRangeList {
5959
/// Return true if this list contains no members.
6060
bool empty() const { return Ranges.empty(); }
6161

62-
/// Get the bit width of this ConstantRangeList.
62+
/// Get the bit width of this ConstantRangeList. It is invalid to call this
63+
/// with an empty range.
6364
uint32_t getBitWidth() const { return Ranges.front().getBitWidth(); }
6465

6566
/// Return the number of ranges in this ConstantRangeList.

0 commit comments

Comments
 (0)