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 0662f8d commit fd0fa2bCopy full SHA for fd0fa2b
llvm/include/llvm/IR/InlineAsm.h
@@ -377,7 +377,7 @@ class InlineAsm final : public Value {
377
assert((isMemKind() || isFuncKind()) &&
378
"Not expected mem or function flag!");
379
uint32_t D = getData();
380
- assert(D < static_cast<uint32_t>(ConstraintCode::Max) &&
+ assert(D <= static_cast<uint32_t>(ConstraintCode::Max) &&
381
D >= static_cast<uint32_t>(ConstraintCode::Unknown) &&
382
"unexpected value for memory constraint");
383
return static_cast<ConstraintCode>(D);
0 commit comments