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 b1749f1 commit 85ccb4eCopy full SHA for 85ccb4e
llvm/include/llvm/ADT/APInt.h
@@ -1366,6 +1366,7 @@ class [[nodiscard]] APInt {
1366
/// This function handles case when \p loBit <= \p hiBit.
1367
void setBits(unsigned loBit, unsigned hiBit) {
1368
assert(hiBit <= BitWidth && "hiBit out of range");
1369
+ assert(loBit <= BitWidth && "loBit out of range");
1370
assert(loBit <= hiBit && "loBit greater than hiBit");
1371
if (loBit == hiBit)
1372
return;
0 commit comments