Sema: allow comptime blocks for global assembly

An assembly expression in a comptime block is legal Zig in the case of
global assembly [^1]. Instead of unconditionally asserting that the
expression lives in a runtime block, here we assert that if the
expression lives in a comptime block it must be outside of function
scope.

[^1]: https://ziglang.org/documentation/0.9.1/#Global-Assembly
633fe41a2cDaniele Cocca committed on 3/30/2022, 8:57:15 AM· committed by Veikka Tuominenparent5d5282b
1 file changedLine totals unavailable