diff options
author | Alexey Bader <alexey.bader@intel.com> | 2017-06-29 08:44:10 +0000 |
---|---|---|
committer | Alexey Bader <alexey.bader@intel.com> | 2017-06-29 08:44:10 +0000 |
commit | 3d0c97883a2a1aa246b90de4dfce9f62023310fa (patch) | |
tree | f363eafb474d825019c5fc1d27b3cd197933664b /lldb/source/Symbol/ObjectFile.cpp | |
parent | 82090a7d299cbb8ed744d8c75610e309e3f77310 (diff) | |
download | llvm-3d0c97883a2a1aa246b90de4dfce9f62023310fa.zip llvm-3d0c97883a2a1aa246b90de4dfce9f62023310fa.tar.gz llvm-3d0c97883a2a1aa246b90de4dfce9f62023310fa.tar.bz2 |
[OpenCL] Allow function declaration with empty argument list.
Summary:
does it make sense to enable K&R function declaration style for OpenCL?
clang throws following error message for the declaration w/o arguments:
```
int my_func();
error: function with no prototype cannot use the spir_function calling convention
```
Current way to fix this issue is to specify that parameter list is empty by using 'void':
```
int my_func(void);
```
Let me know what do you think about this patch.
Reviewers: Anastasia, yaxunl
Reviewed By: Anastasia
Subscribers: cfe-commits, echuraev
Differential Revision: https://reviews.llvm.org/D33681
llvm-svn: 306653
Diffstat (limited to 'lldb/source/Symbol/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions