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 ---
|
// --- Real encoding ---
|
||||||
// Create an instruction iterator and iterate it in chunks of 7.
|
// Create an instruction iterator and iterate it in chunks of 7.
|
||||||
// fill the last chunk with a nop (it should never be executed).
|
// fill the last chunk with a nop (it should never be executed).
|
||||||
let mut instr_iter = func
|
let mut instr_iter =
|
||||||
.blocks
|
func.blocks.iter().flat_map(|b| b.instrs.iter()).peekable();
|
||||||
.iter()
|
|
||||||
.flat_map(|b| b.instrs.iter().map(|x| &*x))
|
|
||||||
.peekable();
|
|
||||||
let mut filling_instr = Instr {
|
let mut filling_instr = Instr {
|
||||||
pred: true.into(),
|
pred: true.into(),
|
||||||
op: Op::Nop(OpNop { label: None }),
|
op: Op::Nop(OpNop { label: None }),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue