Commit 71ba070
[Sema] Fix bug in builtin AS override (llvm#138141)
Fix the logic in rewriteBuiltinFunctionDecl to work when the builtin
has a pointer parameter with an address space and one without a fixed
address space. A builtin fitting these criteria was recently added.
Change the attribute string to perform type checking on it, so without
the sema change compilation would fail with a wrong number of arguments
error.1 parent de32634 commit 71ba070
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6247 | 6247 | | |
6248 | 6248 | | |
6249 | 6249 | | |
6250 | | - | |
| 6250 | + | |
| 6251 | + | |
6251 | 6252 | | |
6252 | 6253 | | |
6253 | 6254 | | |
| |||
6256 | 6257 | | |
6257 | 6258 | | |
6258 | 6259 | | |
6259 | | - | |
6260 | | - | |
6261 | | - | |
6262 | 6260 | | |
6263 | 6261 | | |
6264 | 6262 | | |
| |||
0 commit comments