Commit bd11926
committed
[Swiftify] Adjust _SwiftifyImport invocation to align with the signature
of the macro in the currently laoded macro module
Stdlib macros are shipped with the SDK, so we need to make sure that the
way we invoke the macro matches the version of the macro in the SDK.
This patch skips the `spanAvailability` parameter if it isn't present.
There's no good way to test this, because we will always pick up the
current macro in our llvm-lit test suite, but I've tested it manually.
rdar://1522782921 parent c0c7bf3 commit bd11926
File tree
2 files changed
+15
-1
lines changed- lib/ClangImporter
- stdlib/public/core
2 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9055 | 9055 | | |
9056 | 9056 | | |
9057 | 9057 | | |
| 9058 | + | |
| 9059 | + | |
9058 | 9060 | | |
9059 | 9061 | | |
9060 | 9062 | | |
9061 | 9063 | | |
9062 | 9064 | | |
9063 | 9065 | | |
| 9066 | + | |
| 9067 | + | |
| 9068 | + | |
| 9069 | + | |
| 9070 | + | |
| 9071 | + | |
| 9072 | + | |
| 9073 | + | |
| 9074 | + | |
| 9075 | + | |
| 9076 | + | |
| 9077 | + | |
9064 | 9078 | | |
9065 | 9079 | | |
9066 | 9080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
0 commit comments