Skip to content

Commit

Permalink
switched to direct assert
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmcg committed Jan 19, 2024
1 parent 247a98b commit ec7f96c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clang/lib/CIR/CodeGen/CIRGenDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit ec7f96c

Please sign in to comment.