Fixed a typo.
authorArtem Belevich <tra@google.com>
Fri, 23 Aug 2019 16:24:17 +0000 (16:24 +0000)
committerArtem Belevich <tra@google.com>
Fri, 23 Aug 2019 16:24:17 +0000 (16:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369777 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index f6064011be640fa350a042d275617ebd3d3965d2..b0d610401a9f3790985ce052862b1bff46b92aff 100644 (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