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....@@ -858,7 +858,6 @@ fn builtinCall(astrl: *AstRlAnnotate, block: ?*Block, ri: ResultInfo, node: Ast.
858 .src,858 .src,
859 .This,859 .This,
860 .return_address,860 .return_address,
861 .frame_address,
862 .error_return_trace,861 .error_return_trace,
863 .frame,862 .frame,
864 .breakpoint,863 .breakpoint,
...@@ -867,6 +866,9 @@ fn builtinCall(astrl: *AstRlAnnotate, block: ?*Block, ri: ResultInfo, node: Ast....@@ -867,6 +866,9 @@ fn builtinCall(astrl: *AstRlAnnotate, block: ?*Block, ri: ResultInfo, node: Ast.
867 .trap,866 .trap,
868 .c_va_start,867 .c_va_start,
869 => return false,868 => return false,
869 // TODO: this is a workaround for llvm/llvm-project#68409
870 // Zig tracking issue: #16876
871 .frame_address => return true,
870 // These builtins take a single argument with a known result type, but do not consume their872 // These builtins take a single argument with a known result type, but do not consume their
871 // result pointer.873 // result pointer.
872 .size_of,874 .size_of,