================
@@ -930,12 +928,26 @@ CIRGenTypes::arrangeFunctionDeclaration(const 
FunctionDecl *fd) {
   // TODO: setCUDAKernelCallingConvention
   assert(!cir::MissingFeatures::cudaSupport());
 
-  // When declaring a function without a prototype, always use a non-variadic
-  // type.
+  // Handle C89/gnu89 no-prototype functions (FunctionNoProtoType).
----------------
andykaylor wrote:

This comment introduces more questions than answers, given that since C99 it is 
not permitted. Let's just leave the previous comment as it was. 

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