mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Stop using ArrayRef of a const type.
I *think* this is what the GCC bots are complaining about. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222905 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -345,8 +345,7 @@ public:
|
||||
/// AllocateRegBlock - Attempt to allocate a block of RegsRequired consecutive
|
||||
/// registers. If this is not possible, return zero. Otherwise, return the first
|
||||
/// register of the block that were allocated, marking the entire block as allocated.
|
||||
unsigned AllocateRegBlock(ArrayRef<const uint16_t> Regs,
|
||||
unsigned RegsRequired) {
|
||||
unsigned AllocateRegBlock(ArrayRef<uint16_t> Regs, unsigned RegsRequired) {
|
||||
if (RegsRequired > Regs.size())
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user