std: remove redundant comptime keyword
@g-w1's fancy new compile error in action
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user