diff options
| author | Justin Lebar <jlebar@google.com> | 2016-08-10 01:09:11 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2016-08-10 01:09:11 +0000 |
| commit | b008003aa3f0d7d48cfab30a93f7f475f206391a (patch) | |
| tree | 3c8ba8bd2107c152c133d602f4351bacbec01757 /clang/lib/Sema/SemaExpr.cpp | |
| parent | bf16db1cf25d0cc9627935953357e969ebfb8f8e (diff) | |
| download | bcm5719-llvm-b008003aa3f0d7d48cfab30a93f7f475f206391a.tar.gz bcm5719-llvm-b008003aa3f0d7d48cfab30a93f7f475f206391a.zip | |
[CUDA] Rename CheckCUDATarget to IsAllowedCUDACall. NFC
Summary:
I want to reuse "CheckCUDAFoo" in a later patch. Also, I think
IsAllowedCUDACall gets the point across more clearly.
Reviewers: tra
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D23238
llvm-svn: 278193
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 4d31cd86cc9..7ecf84a38d9 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -1741,7 +1741,7 @@ Sema::BuildDeclRefExpr(ValueDecl *D, QualType Ty, ExprValueKind VK, if (getLangOpts().CUDA) if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) if (const FunctionDecl *Callee = dyn_cast<FunctionDecl>(D)) { - if (CheckCUDATarget(Caller, Callee)) { + if (!IsAllowedCUDACall(Caller, Callee)) { Diag(NameInfo.getLoc(), diag::err_ref_bad_target) << IdentifyCUDATarget(Callee) << D->getIdentifier() << IdentifyCUDATarget(Caller); |

