aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-03-31 23:00:00 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-03-31 23:00:00 -0700
commitc9e31febf811286580792265efe20ccfa76c0fcf (patch)
tree23204dcead9078d0c97df6de753beec39cdbea91 /src/Sema.zig
parentb27d0526768a5be715eeb9381a61d335e9a05e9e (diff)
downloadzig-c9e31febf811286580792265efe20ccfa76c0fcf.tar.gz
zig-c9e31febf811286580792265efe20ccfa76c0fcf.zip
stage2: finish implementation of LazySrcLoc
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig1
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