diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2019-09-21 02:51:44 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2019-09-21 02:51:44 +0000 |
commit | 27a8039171817a38f76adf51793f0d22f84dd78e (patch) | |
tree | 3a3db0326b91b5096658103f62af4db4a89dbf41 /clang/lib/Sema/SemaCUDA.cpp | |
parent | d98d3ea9fe382c2fd0beeaf170532bf8e3521d47 (diff) | |
download | llvm-27a8039171817a38f76adf51793f0d22f84dd78e.zip llvm-27a8039171817a38f76adf51793f0d22f84dd78e.tar.gz llvm-27a8039171817a38f76adf51793f0d22f84dd78e.tar.bz2 |
Revert assertion added by r372394
The assertion added by r372394 causes CUDA test in test-suite to assert.
The assertion was not there originally, so revert it.
llvm-svn: 372452
Diffstat (limited to 'clang/lib/Sema/SemaCUDA.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCUDA.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCUDA.cpp b/clang/lib/Sema/SemaCUDA.cpp index e009dcb..cf8910c 100644 --- a/clang/lib/Sema/SemaCUDA.cpp +++ b/clang/lib/Sema/SemaCUDA.cpp @@ -396,7 +396,6 @@ bool Sema::inferCUDATargetForImplicitSpecialMember(CXXRecordDecl *ClassDecl, // We either setting attributes first time, or the inferred ones must match // previously set ones. - assert(!(HasD || HasH) || (NeedsD == HasD && NeedsH == HasH)); if (NeedsD && !HasD) MemberDecl->addAttr(CUDADeviceAttr::CreateImplicit(Context)); if (NeedsH && !HasH) |