mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
Revert "Don't assume a write if an operand is not in function parameters"
This reverts commit 2ab78937dd29fbc299ac434f962a5ff41002cc43. Premature merge - apologies for the disruption. Reopens #15685 Reopens #17580
This commit is contained in:
parent
2ab78937dd
commit
9d5a133f18
@ -489,7 +489,7 @@ pub fn categorizeOperand(
|
||||
for (args, 0..) |arg, i| {
|
||||
if (arg == operand_ref) return matchOperandSmallIndex(l, inst, @as(OperandInt, @intCast(i + 1)), .write);
|
||||
}
|
||||
return .none;
|
||||
return .write;
|
||||
}
|
||||
var bt = l.iterateBigTomb(inst);
|
||||
if (bt.feed()) {
|
||||
@ -504,7 +504,7 @@ pub fn categorizeOperand(
|
||||
if (arg == operand_ref) return .write;
|
||||
}
|
||||
}
|
||||
return .none;
|
||||
return .write;
|
||||
},
|
||||
.select => {
|
||||
const pl_op = air_datas[@intFromEnum(inst)].pl_op;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user