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

@@ -626,7 +626,7 @@ pub const DeclGen = struct {
}
fn fail(dg: *DeclGen, comptime format: []const u8, args: anytype) error{ AnalysisFail, OutOfMemory } {
@setCold(true);
@branchHint(.cold);
const zcu = dg.pt.zcu;
const src_loc = zcu.navSrcLoc(dg.pass.nav);
dg.error_msg = try Zcu.ErrorMsg.create(dg.gpa, src_loc, format, args);