From 51f6438e076c0347197c251716174037a8465e91 Mon Sep 17 00:00:00 2001 From: mlugg Date: Fri, 18 Aug 2023 18:33:44 +0100 Subject: [PATCH] AstRlAnnotate: work around upstream LLVM bug This is a workaround for an LLVM bug causing compiler crashes for certain targets, and can be reverted once a fix for that lands. Tracked by #16876. --- src/AstRlAnnotate.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AstRlAnnotate.zig b/src/AstRlAnnotate.zig index 4d873170d7..2a84de64d0 100644 --- a/src/AstRlAnnotate.zig +++ b/src/AstRlAnnotate.zig @@ -858,7 +858,6 @@ fn builtinCall(astrl: *AstRlAnnotate, block: ?*Block, ri: ResultInfo, node: Ast. .src, .This, .return_address, - .frame_address, .error_return_trace, .frame, .breakpoint, @@ -867,6 +866,9 @@ fn builtinCall(astrl: *AstRlAnnotate, block: ?*Block, ri: ResultInfo, node: Ast. .trap, .c_va_start, => return false, + // TODO: this is a workaround for llvm/llvm-project#68409 + // Zig tracking issue: #16876 + .frame_address => return true, // These builtins take a single argument with a known result type, but do not consume their // result pointer. .size_of,