compiler,lib,test,langref: migrate @setCold to @branchHint

This commit is contained in:
mlugg
2024-08-24 16:16:53 +01:00
parent a3a737e9a6
commit 6808ce27bd
42 changed files with 94 additions and 96 deletions

View File

@@ -46,7 +46,7 @@ comptime {
// Avoid dragging in the runtime safety mechanisms into this .o file,
// unless we're trying to test this file.
pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, _: ?usize) noreturn {
@setCold(true);
@branchHint(.cold);
_ = error_return_trace;
if (builtin.is_test) {
std.debug.panic("{s}", .{msg});