Commit b08a764
Detect byref params via attribute instead of classify_arguments
classify_arguments can fail post-optimization on typed-pointer LLVM
because convert(LLVMType, source_typ) may produce a different element
type than the post-optimization codegen type, hitting the assertion
at irgen.jl:322. This was triggered by the Symbols test in AMDGPU.jl.
Instead of re-classifying arguments, just check for the byref
attribute directly on each parameter — we know it's present because
irgen.jl added it.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 687f79d commit b08a764
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments