parent
5a5d44e801
commit
4c9d2ab145
|
@ -9006,7 +9006,7 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
|
|||
// may end up with different effective targets. Instead, a
|
||||
// specialization inherits its target attributes from its template
|
||||
// in the CheckFunctionTemplateSpecialization() call below.
|
||||
if (getLangOpts().CUDA & !isFunctionTemplateSpecialization)
|
||||
if (getLangOpts().CUDA && !isFunctionTemplateSpecialization)
|
||||
maybeAddCUDAHostDeviceAttrs(NewFD, Previous);
|
||||
|
||||
// If it's a friend (and only if it's a friend), it's possible
|
||||
|
|
Loading…
Reference in New Issue