diff --git a/clang/lib/CIR/CodeGen/CIRGenDecl.cpp b/clang/lib/CIR/CodeGen/CIRGenDecl.cpp index ff9089d9e4c5..dd86a854e01c 100644 --- a/clang/lib/CIR/CodeGen/CIRGenDecl.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenDecl.cpp @@ -57,8 +57,7 @@ CIRGenFunction::buildAutoVarAlloca(const VarDecl &D) { Address allocaAddr = Address::invalid(); Address openMPLocalAddr = getCIRGenModule().getOpenMPRuntime().getAddressOfLocalVariable(*this, &D); - if (getLangOpts().OpenMPIsTargetDevice) - assert(UnimplementedFeature::openMPTarget()); + assert(!getLangOpts().OpenMPIsTargetDevice && "NYI"); if (getLangOpts().OpenMP && openMPLocalAddr.isValid()) { llvm_unreachable("NYI"); } else if (Ty->isConstantSizeType()) {