Skip to content

Commit

Permalink
Revert assertion added by r372394
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yxsamliu committed Sep 21, 2019
1 parent d98d3ea commit 27a8039
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clang/lib/Sema/SemaCUDA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27a8039

Please sign in to comment.