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
This commit is contained in:
Yaxun Liu 2019-09-21 02:51:44 +00:00
parent d98d3ea9fe
commit 27a8039171
1 changed files with 0 additions and 1 deletions

View File

@ -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)