forked from OSchip/llvm-project
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:
parent
d98d3ea9fe
commit
27a8039171
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue