projects
/
clang
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d803c8
)
Fixed a typo.
author
Artem Belevich
<tra@google.com>
Fri, 23 Aug 2019 16:24:17 +0000
(16:24 +0000)
committer
Artem 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
patch
|
blob
|
history
diff --git
a/lib/Sema/SemaDecl.cpp
b/lib/Sema/SemaDecl.cpp
index f6064011be640fa350a042d275617ebd3d3965d2..b0d610401a9f3790985ce052862b1bff46b92aff 100644
(file)
--- 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