File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -129,14 +129,14 @@ class SwiftDispatcher {
129
129
// This method gives a TRAP label for already emitted AST node.
130
130
// If the AST node was not emitted yet, then the emission is dispatched to a corresponding
131
131
// visitor (see `visit(T *)` methods below).
132
+ // clang-format off
132
133
template <typename E>
133
- requires std::constructible_from<Handle, E> TrapLabelOf<E> fetchLabel (const E& e,
134
- swift::Type type = {}) {
135
- if constexpr (std::constructible_from<bool , const E&>) {
136
- if (!e) {
137
- // this will be treated on emission
138
- return undefined_label;
139
- }
134
+ requires std::constructible_from<Handle, E*>
135
+ TrapLabelOf<E> fetchLabel (const E* e, swift::Type type = {}) {
136
+ // clang-format on
137
+ if (!e) {
138
+ // this will be treated on emission
139
+ return undefined_label;
140
140
}
141
141
auto & stored = store[e];
142
142
if (!stored.valid ()) {
@@ -162,8 +162,11 @@ class SwiftDispatcher {
162
162
return ret;
163
163
}
164
164
165
+ // clang-format off
165
166
template <typename E>
166
- requires std::constructible_from<Handle, E*> TrapLabelOf<E> fetchLabel (const E& e) {
167
+ requires std::constructible_from<Handle, E*>
168
+ TrapLabelOf<E> fetchLabel (const E& e) {
169
+ // clang-format on
167
170
return fetchLabel (&e);
168
171
}
169
172
You can’t perform that action at this time.
0 commit comments