@@ -150,6 +150,9 @@ def make_arg_for_type(ty: str) -> Tuple[str, str]:
150
150
if ty in LITERAL_TYPES_MAP :
151
151
return "" , LITERAL_TYPES_MAP [ty ]
152
152
153
+ if ty .startswith ("ImmCheck" ) or ty .startswith ("enum " ):
154
+ print (f"Failed to parse potential literal type: { ty } " , file = sys .stderr )
155
+
153
156
name = ty .replace (" " , "_" ).replace ("*" , "ptr" ) + "_val"
154
157
return f"{ ty } { name } ;" , name
155
158
@@ -252,7 +255,7 @@ def emit_streaming_guard_run_lines(ctx: BuiltinContext) -> str:
252
255
253
256
if "streaming-only" in ctx .flags :
254
257
assert not guard_features
255
- # Generate RUN lines for features only availble to streaming functions
258
+ # Generate RUN lines for features only available to streaming functions
256
259
for feats in streaming_guard_features :
257
260
out .append (
258
261
f"{ run_prefix } { cc1_args_for_features (feats )} -verify=streaming-guard"
@@ -270,7 +273,7 @@ def emit_streaming_guard_run_lines(ctx: BuiltinContext) -> str:
270
273
ctx .guard + "," + ctx .streaming_guard , ctx .flags
271
274
)
272
275
273
- # Generate RUN lines for features only availble to normal functions
276
+ # Generate RUN lines for features only available to normal functions
274
277
for feats in guard_features :
275
278
if feats not in combined_features :
276
279
out .append (f"{ run_prefix } { cc1_args_for_features (feats )} -verify=guard" )
0 commit comments