Skip to content

Commit

Permalink
Add const to misleading double assignment (#113)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Keno authored Jun 15, 2024
1 parent 76e23b2 commit 6f02941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm_intrin/memory_addr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit 6f02941

Please sign in to comment.