|
@@ -369,7 +369,7 @@ def warn_implicit_function_decl : Warning<
|
|
"implicit declaration of function %0">,
|
|
"implicit declaration of function %0">,
|
|
InGroup<ImplicitFunctionDeclare>, DefaultIgnore;
|
|
InGroup<ImplicitFunctionDeclare>, DefaultIgnore;
|
|
def ext_implicit_function_decl : ExtWarn<
|
|
def ext_implicit_function_decl : ExtWarn<
|
|
- "implicit declaration of function %0 is invalid in %select{C99|OpenCL}1">,
|
|
|
|
|
|
+ "implicit declaration of function %0 is invalid in C99">,
|
|
InGroup<ImplicitFunctionDeclare>;
|
|
InGroup<ImplicitFunctionDeclare>;
|
|
def note_function_suggestion : Note<"did you mean %0?">;
|
|
def note_function_suggestion : Note<"did you mean %0?">;
|
|
|
|
|
|
@@ -8556,6 +8556,8 @@ def err_opencl_scalar_type_rank_greater_than_vector_type : Error<
|
|
"element. (%0 and %1)">;
|
|
"element. (%0 and %1)">;
|
|
def err_bad_kernel_param_type : Error<
|
|
def err_bad_kernel_param_type : Error<
|
|
"%0 cannot be used as the type of a kernel parameter">;
|
|
"%0 cannot be used as the type of a kernel parameter">;
|
|
|
|
+def err_opencl_implicit_function_decl : Error<
|
|
|
|
+ "implicit declaration of function %0 is invalid in OpenCL">;
|
|
def err_record_with_pointers_kernel_param : Error<
|
|
def err_record_with_pointers_kernel_param : Error<
|
|
"%select{struct|union}0 kernel parameters may not contain pointers">;
|
|
"%select{struct|union}0 kernel parameters may not contain pointers">;
|
|
def note_within_field_of_type : Note<
|
|
def note_within_field_of_type : Note<
|