r369777 - Fixed a typo.

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 23 09:24:18 PDT 2019


Author: tra
Date: Fri Aug 23 09:24:17 2019
New Revision: 369777

URL: http://llvm.org/viewvc/llvm-project?rev=369777&view=rev
Log:
Fixed a typo.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=369777&r1=369776&r2=369777&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Aug 23 09:24:17 2019
@@ -9006,7 +9006,7 @@ Sema::ActOnFunctionDeclarator(Scope *S,
     // 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




More information about the cfe-commits mailing list