mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
nak: drop "deref on an immutable reference"
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
4fbda98cf4
commit
124fe82762
1 changed files with 2 additions and 5 deletions
|
|
@ -125,11 +125,8 @@ where
|
|||
// --- Real encoding ---
|
||||
// Create an instruction iterator and iterate it in chunks of 7.
|
||||
// fill the last chunk with a nop (it should never be executed).
|
||||
let mut instr_iter = func
|
||||
.blocks
|
||||
.iter()
|
||||
.flat_map(|b| b.instrs.iter().map(|x| &*x))
|
||||
.peekable();
|
||||
let mut instr_iter =
|
||||
func.blocks.iter().flat_map(|b| b.instrs.iter()).peekable();
|
||||
let mut filling_instr = Instr {
|
||||
pred: true.into(),
|
||||
op: Op::Nop(OpNop { label: None }),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue