diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-03-31 23:00:00 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-03-31 23:00:00 -0700 |
| commit | c9e31febf811286580792265efe20ccfa76c0fcf (patch) | |
| tree | 23204dcead9078d0c97df6de753beec39cdbea91 /src/Sema.zig | |
| parent | b27d0526768a5be715eeb9381a61d335e9a05e9e (diff) | |
| download | zig-c9e31febf811286580792265efe20ccfa76c0fcf.tar.gz zig-c9e31febf811286580792265efe20ccfa76c0fcf.zip | |
stage2: finish implementation of LazySrcLoc
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 8a12fbcd6a..876016df8c 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -76,6 +76,7 @@ pub fn rootAsRef(sema: *Sema, root_block: *Scope.Block) !zir.Inst.Ref { /// Assumes that `root_block` ends with `break_inline`. pub fn rootAsType(sema: *Sema, root_block: *Scope.Block) !Type { + assert(root_block.is_comptime); const zir_inst_ref = try sema.rootAsRef(root_block); // Source location is unneeded because resolveConstValue must have already // been successfully called when coercing the value to a type, from the |
