Skip to content

Commit 72c056b

Browse files
committed
Emit unsupported directive error
1 parent a1de094 commit 72c056b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGStmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ void CodeGenFunction::EmitStmt(const Stmt *S, ArrayRef<const Attr *> Attrs) {
407407
EmitOMPInteropDirective(cast<OMPInteropDirective>(*S));
408408
break;
409409
case Stmt::OMPDispatchDirectiveClass:
410-
llvm_unreachable("Dispatch directive not supported yet.");
410+
CGM.ErrorUnsupported(S, "OpenMP dispatch directive");
411411
break;
412412
case Stmt::OMPScopeDirectiveClass:
413413
llvm_unreachable("scope not supported with FE outlining");

0 commit comments

Comments
 (0)