Skip to content

Commit 6f02941

Browse files
authored
Add const to misleading double assignment (#113)
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.
1 parent 76e23b2 commit 6f02941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llvm_intrin/memory_addr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const STORE_SCOPE_FLAGS = ", !noalias !3";
8686
# !9 = !{!"jtbaa"}
8787
# """;
8888
# const TBAA_FLAGS = ", !tbaa !4";
89-
const TBAA_STR = TBAA_FLAGS = ""
89+
const TBAA_STR = const TBAA_FLAGS = ""
9090
# const TBAA_STR = """
9191
# !4 = !{!"jtbaa", !5, i64 0}
9292
# !5 = !{!"jtbaa"}

0 commit comments

Comments
 (0)