mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Fixed a bug with how we determine bitset indices.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226671 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba9dbd7a92
commit
bdcc4ec129
@ -774,7 +774,7 @@ static Optional<StratifiedAttr> valueToAttrIndex(Value *Val) {
|
||||
}
|
||||
|
||||
static StratifiedAttr argNumberToAttrIndex(unsigned ArgNum) {
|
||||
if (ArgNum > AttrMaxNumArgs)
|
||||
if (ArgNum >= AttrMaxNumArgs)
|
||||
return AttrAllIndex;
|
||||
return ArgNum + AttrFirstArgIndex;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user