authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2023-08-18 18:33:44+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-08-20 11:58:14-07:00
log51f6438e076c0347197c251716174037a8465e91
tree8913aa7a52daeb16077ba14363ef968f2ed8d219
parent321961d860b03967358b5602e0e7832364e1e11c

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.

1 files changed, 3 insertions(+), 1 deletions(-)

src/AstRlAnnotate.zig+3-1
......@@ -858,7 +858,6 @@ fn builtinCall(astrl: *AstRlAnnotate, block: ?*Block, ri: ResultInfo, node: Ast.
858858 .src,
859859 .This,
860860 .return_address,
861 .frame_address,
862861 .error_return_trace,
863862 .frame,
864863 .breakpoint,
......@@ -867,6 +866,9 @@ fn builtinCall(astrl: *AstRlAnnotate, block: ?*Block, ri: ResultInfo, node: Ast.
867866 .trap,
868867 .c_va_start,
869868 => return false,
869 // TODO: this is a workaround for llvm/llvm-project#68409
870 // Zig tracking issue: #16876
871 .frame_address => return true,
870872 // These builtins take a single argument with a known result type, but do not consume their
871873 // result pointer.
872874 .size_of,