summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2019-08-23 16:24:17 +0000
committerArtem Belevich <tra@google.com>2019-08-23 16:24:17 +0000
commit4c9d2ab145ad5c662f27da5844ab3a7da9303080 (patch)
treeb38547342d127445dcdf38c623aeb14e5e7496b1
parent5a5d44e801aa895f7dbcb59922c899385193fce3 (diff)
downloadbcm5719-llvm-4c9d2ab145ad5c662f27da5844ab3a7da9303080.tar.gz
bcm5719-llvm-4c9d2ab145ad5c662f27da5844ab3a7da9303080.zip
Fixed a typo.
llvm-svn: 369777
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index f6064011be6..b0d610401a9 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud