================
@@ -792,14 +792,12 @@ arrangeFreeFunctionLikeCall(CIRGenTypes &cgt, 
CIRGenModule &cgm,
       required = RequiredArgs::getFromProtoWithExtraSlots(proto, 0);
     if (proto->hasExtParameterInfos())
       cgm.errorNYI("call to functions with extra parameter info");
-  } else if (cgm.getTargetCIRGenInfo().isNoProtoCallVariadic(
-                 cast<FunctionNoProtoType>(fnType)))
-    cgm.errorNYI("call to function without a prototype");
+  }
 
   SmallVector<CanQualType, 16> argTypes;
+  argTypes.reserve(args.size());
----------------
andykaylor wrote:

This is not necessarily a bad idea, but it's unrelated to the current fix, so 
it shouldn't be in this PR. It would be better to remove the initial size 
template argument to SmallVector (because it isn't necessary and we probably 
don't have a good reason for choosing 16) and omit the reserve unless we have 
reason to believe that reallocation is happening often (which would surprise me 
in this case).

https://github.com/llvm/llvm-project/pull/182718
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to