From ca66650e21db892f1acb156d9f1d082591c0eaac Mon Sep 17 00:00:00 2001 From: Yaxun Liu Date: Sat, 21 Sep 2019 02:51:44 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372452 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaCUDA.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Sema/SemaCUDA.cpp b/lib/Sema/SemaCUDA.cpp index e009dcb6f1..cf8910cd84 100644 --- a/lib/Sema/SemaCUDA.cpp +++ b/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) -- cgit v1.2.1