Commit c62373c
committed
clang: Do not implicitly addrspacecast in EmitAggExprToLValue
This fixes breaking the ABI for calls to the kernel enqueue
implementation functions in OpenCL. The ABI passes these by stack
byref or byval, but this was incorrectly casting the stack slot
and passing to the use function.
I think nearly all uses of CreateMemTemp should not be inserting
this cast, but that will require a larger change with many more test
updates.1 parent efb966e commit c62373c
File tree
2 files changed
+21
-31
lines changed- clang
- lib/CodeGen
- test/CodeGenOpenCL
2 files changed
+21
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2219 | 2219 | | |
2220 | 2220 | | |
2221 | 2221 | | |
2222 | | - | |
| 2222 | + | |
2223 | 2223 | | |
2224 | 2224 | | |
2225 | 2225 | | |
| |||
0 commit comments