From d3b80a1b6dc2fde190770ad3d832fa899b4b77db Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Fri, 14 Jun 2024 22:29:39 +0000 Subject: [PATCH] Add `const` to misleading double assignment In `const a = b = ...`, only `a` ends up const, although the syntax is arguably confusing. I don't think it matters to much in this context, but TBAA_FLAGS was clearly intended to be const, so annotate it as such. --- src/llvm_intrin/memory_addr.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llvm_intrin/memory_addr.jl b/src/llvm_intrin/memory_addr.jl index 1eb62df7..8ad9cf44 100644 --- a/src/llvm_intrin/memory_addr.jl +++ b/src/llvm_intrin/memory_addr.jl @@ -86,7 +86,7 @@ const STORE_SCOPE_FLAGS = ", !noalias !3"; # !9 = !{!"jtbaa"} # """; # const TBAA_FLAGS = ", !tbaa !4"; -const TBAA_STR = TBAA_FLAGS = "" +const TBAA_STR = const TBAA_FLAGS = "" # const TBAA_STR = """ # !4 = !{!"jtbaa", !5, i64 0} # !5 = !{!"jtbaa"}