stage2: fix comptimeExpr and comptime function calls

This commit is contained in:
Andrew Kelley
2021-03-23 13:25:58 -07:00
parent 866be099f8
commit af73f79490
4 changed files with 30 additions and 47 deletions

View File

@@ -416,10 +416,6 @@ pub const Scope = struct {
}
}
pub fn isComptime(scope: *Scope) bool {
return scope.getGenZir().force_comptime;
}
pub fn ownerDecl(scope: *Scope) ?*Decl {
return switch (scope.tag) {
.block => scope.cast(Block).?.sema.owner_decl,