Go to file
Alexey Bader 3d0c97883a [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
2017-06-29 08:44:10 +00:00
clang [OpenCL] Allow function declaration with empty argument list. 2017-06-29 08:44:10 +00:00
clang-tools-extra [clangd] Added a test, checking that gcc install is searched via VFS. 2017-06-29 08:43:51 +00:00
compiler-rt Revert "[LSan] Make LSan allocator allocator_may_return_null compliant" 2017-06-29 04:39:17 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc generic: add missing get_work_dim include 2017-06-02 15:58:35 +00:00
libcxx [libc++] Hoist explicit instantiation above implicit. NFC 2017-06-29 02:52:46 +00:00
libcxxabi Add some catch(...) blocks to the tests so that if they fail, we get a good error message. No functional change. 2017-06-22 00:49:03 +00:00
libunwind [libunwind] Add _LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS 2017-06-27 18:37:06 +00:00
lld Revert "Replace trivial use of external rc.exe by writing our own .res file." 2017-06-29 00:17:26 +00:00
lldb Fix two places in RegisterContextLLDB::InitializeNonZerothFrame where 2017-06-29 03:02:24 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [BinaryFormat] Identify AArch64 COFF files 2017-06-29 06:30:56 +00:00
openmp Make test/parallel/omp_nested.c not use so many threads 2017-06-27 03:04:25 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Initializing NVPTX backend within Polly 2017-06-29 07:43:22 +00:00