std: remove redundant comptime keyword

@g-w1's fancy new compile error in action
This commit is contained in:
Andrew Kelley
2021-04-28 22:58:12 -07:00
parent 0c71d2fdc1
commit c60d8f017e
12 changed files with 26 additions and 26 deletions

View File

@@ -353,18 +353,18 @@ pub const StackIterator = struct {
}
// Offset of the saved BP wrt the frame pointer.
const fp_offset = if (comptime native_arch.isRISCV())
const fp_offset = if (native_arch.isRISCV())
// On RISC-V the frame pointer points to the top of the saved register
// area, on pretty much every other architecture it points to the stack
// slot where the previous frame pointer is saved.
2 * @sizeOf(usize)
else if (comptime native_arch.isSPARC())
else if (native_arch.isSPARC())
// On SPARC the previous frame pointer is stored at 14 slots past %fp+BIAS.
14 * @sizeOf(usize)
else
0;
const fp_bias = if (comptime native_arch.isSPARC())
const fp_bias = if (native_arch.isSPARC())
// On SPARC frame pointers are biased by a constant.
2047
else