summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2019-09-21 02:51:44 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2019-09-21 02:51:44 +0000
commitca66650e21db892f1acb156d9f1d082591c0eaac (patch)
treee7227ea03925071444cf8ae56ef1705389ac4633
parente92c0a12959f88b63b2a6346be0fe1a98d6aa8c5 (diff)
downloadclang-ca66650e21db892f1acb156d9f1d082591c0eaac.tar.gz
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
-rw-r--r--lib/Sema/SemaCUDA.cpp1
1 files changed, 0 insertions, 1 deletions
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)