diff options
author | Anastasia Stulova <anastasia.stulova@arm.com> | 2016-01-05 14:39:27 +0000 |
---|---|---|
committer | Anastasia Stulova <anastasia.stulova@arm.com> | 2016-01-05 14:39:27 +0000 |
commit | cf04d04ccf6879aa943e09ca8066105e692ab2df (patch) | |
tree | 9cbbe5d106ea95522f5d11b5ae5d60996979aeac /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e09fcfb1085dc7c64b6ba4ba078757e1d93b4089 (diff) | |
download | llvm-cf04d04ccf6879aa943e09ca8066105e692ab2df.zip llvm-cf04d04ccf6879aa943e09ca8066105e692ab2df.tar.gz llvm-cf04d04ccf6879aa943e09ca8066105e692ab2df.tar.bz2 |
[OpenCL] Disallow taking an address of a function.
An undecorated function designator implies taking the address of a function,
which is illegal in OpenCL. Implementing a check for this earlier to allow
the error to be reported even in the presence of other more obvious errors.
Patch by Neil Hickey!
http://reviews.llvm.org/D15691
llvm-svn: 256838
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions