diff options
author | Jacques Pienaar <jpienaar@google.com> | 2014-12-16 20:12:38 +0000 |
---|---|---|
committer | Jacques Pienaar <jpienaar@google.com> | 2014-12-16 20:12:38 +0000 |
commit | 5bdd67778f63b23d055324f9adc45b85a8cfb8c5 (patch) | |
tree | a93aa3d46d22b4eacbe7055693d5c90981c4f4e6 /clang/utils/builtin-defines.c | |
parent | 545e7276a870c60d4d289b72b38e1529dae2acd7 (diff) | |
download | bcm5719-llvm-5bdd67778f63b23d055324f9adc45b85a8cfb8c5.tar.gz bcm5719-llvm-5bdd67778f63b23d055324f9adc45b85a8cfb8c5.zip |
Consider calls from implict host device functions as valid in SemaCUDA.
In SemaCUDA all implicit functions were considered host device, this led to
errors such as the following code snippet failing to compile:
struct Copyable {
const Copyable& operator=(const Copyable& x) { return *this; }
};
struct Simple {
Copyable b;
};
void foo() {
Simple a, b;
a = b;
}
Above the implicit copy assignment operator was inferred as host device but
there was only a host assignment copy defined which is an error in device
compilation mode.
Differential Revision: http://reviews.llvm.org/D6565
llvm-svn: 224358
Diffstat (limited to 'clang/utils/builtin-defines.c')
0 files changed, 0 insertions, 0 deletions