From: Artem Belevich Date: Fri, 23 Aug 2019 16:24:17 +0000 (+0000) Subject: Fixed a typo. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02716764b27f3cb18eb39d0f9e3315f580a2d211;p=clang Fixed a typo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369777 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index f6064011be..b0d610401a 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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