| ... | ... | @@ -10253,6 +10253,11 @@ fn zirAsm( |
| 10253 | 10253 | const inputs_len = @truncate(u5, extended.small >> 5); |
| 10254 | 10254 | const clobbers_len = @truncate(u5, extended.small >> 10); |
| 10255 | 10255 | const is_volatile = @truncate(u1, extended.small >> 15) != 0; |
| 10256 | const is_global_assembly = sema.func == null; |
| 10257 | |
| 10258 | if (block.is_comptime and !is_global_assembly) { |
| 10259 | try sema.requireRuntimeBlock(block, src); |
| 10260 | } |
| 10256 | 10261 | |
| 10257 | 10262 | if (extra.data.asm_source == 0) { |
| 10258 | 10263 | // This can move to become an AstGen error after inline assembly improvements land |
| ... | ... | @@ -10317,7 +10322,6 @@ fn zirAsm( |
| 10317 | 10322 | needed_capacity += (asm_source.len + 3) / 4; |
| 10318 | 10323 | |
| 10319 | 10324 | const gpa = sema.gpa; |
| 10320 | | try sema.requireRuntimeBlock(block, src); |
| 10321 | 10325 | try sema.air_extra.ensureUnusedCapacity(gpa, needed_capacity); |
| 10322 | 10326 | const asm_air = try block.addInst(.{ |
| 10323 | 10327 | .tag = .assembly, |