From 73b29d21820f78ef6a0999106dd8fa478a9dd37a Mon Sep 17 00:00:00 2001 From: "Tung D. Le" Date: Thu, 20 Jul 2023 16:39:34 +0900 Subject: [PATCH] fix NONE Signed-off-by: Tung D. Le --- src/Compiler/CompilerUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compiler/CompilerUtils.cpp b/src/Compiler/CompilerUtils.cpp index cec539912d..57c96220c2 100644 --- a/src/Compiler/CompilerUtils.cpp +++ b/src/Compiler/CompilerUtils.cpp @@ -899,7 +899,7 @@ static int setupModule(mlir::OwningOpRef &module, if (modelTag.empty()) modelTag = llvm::sys::path::filename(outputNameNoExt).lower(); // Verify modelTag value. - if (!modelTag.empty() && + if (!StringRef(modelTag).equals_insensitive("NONE") && !std::regex_match(modelTag, std::regex("([a-z0-9_.-]+)"))) { llvm::outs() << "Tag is " << modelTag << "\n"; emitError(loc,