Skip to content

Commit

Permalink
fix NONE
Browse files Browse the repository at this point in the history
Signed-off-by: Tung D. Le <[email protected]>
  • Loading branch information
tungld committed Jul 20, 2023
1 parent b17542f commit 73b29d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compiler/CompilerUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ static int setupModule(mlir::OwningOpRef<ModuleOp> &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,
Expand Down

0 comments on commit 73b29d2

Please sign in to comment.