diff options
| author | Exonorid <exonorid@gmail.com> | 2021-06-10 13:56:55 -0700 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-06-12 19:16:01 +0300 |
| commit | f63338195da893bf3f50326fc69c1801182ebe80 (patch) | |
| tree | 4664ad2a53c23be168462cb0364e2ac0f72e2f45 /src/AstGen.zig | |
| parent | 2ba68f9f4c1de8677db35851cf9e019be132d65b (diff) | |
| download | zig-f63338195da893bf3f50326fc69c1801182ebe80.tar.gz zig-f63338195da893bf3f50326fc69c1801182ebe80.zip | |
Renamed @byteOffsetOf to @offsetOf
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index b2e3b88aab..374d27c3e6 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -2027,7 +2027,7 @@ fn unusedResultExpr(gz: *GenZir, scope: *Scope, statement: ast.Node.Index) Inner .shl_exact, .shr_exact, .bit_offset_of, - .byte_offset_of, + .offset_of, .cmpxchg_strong, .cmpxchg_weak, .splat, @@ -6816,7 +6816,7 @@ fn builtinCall( .shr_exact => return shiftOp(gz, scope, rl, node, params[0], params[1], .shr_exact), .bit_offset_of => return offsetOf(gz, scope, rl, node, params[0], params[1], .bit_offset_of), - .byte_offset_of => return offsetOf(gz, scope, rl, node, params[0], params[1], .byte_offset_of), + .offset_of => return offsetOf(gz, scope, rl, node, params[0], params[1], .offset_of), .c_undef => return simpleCBuiltin(gz, scope, rl, node, params[0], .c_undef), .c_include => return simpleCBuiltin(gz, scope, rl, node, params[0], .c_include), |
