Fixed a typo.

llvm-svn: 369777
This commit is contained in:
Artem Belevich 2019-08-23 16:24:17 +00:00
parent 5a5d44e801
commit 4c9d2ab145
1 changed files with 1 additions and 1 deletions

View File

@ -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