Skip to content

Commit 85586b1

Browse files
committed
update err messages
1 parent c81b8f2 commit 85586b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mlir/lib/Transforms/SelectPass.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ struct SelectPass final : public impl::SelectPassBase<SelectPass> {
6060
return failure();
6161

6262
if (selectCondName.empty())
63-
return errorHandler("Invalid select-cond-name");
63+
return errorHandler("invalid select-cond-name");
6464

6565
if (selectValues.size() != selectPipelines.size())
66-
return errorHandler("Values and pipelines size mismatch");
66+
return errorHandler("values and pipelines size mismatch");
6767

6868
selectPassManagers.resize(selectPipelines.size());
6969

7070
for (auto &&[i, pipeline] : llvm::enumerate(selectPipelines)) {
7171
if (failed(parsePassPipeline(pipeline, selectPassManagers[i])))
72-
return errorHandler("Failed to parse pipeline");
72+
return errorHandler("failed to parse pipeline");
7373
}
7474

7575
return success();
@@ -94,7 +94,7 @@ struct SelectPass final : public impl::SelectPassBase<SelectPass> {
9494
Operation *op = getOperation();
9595
Attribute condAttrValue = op->getAttr(condAttrName);
9696
if (!condAttrValue) {
97-
op->emitError("Condition attribute not present: ") << condAttrName;
97+
op->emitError("condition attribute not present: ") << condAttrName;
9898
return signalPassFailure();
9999
}
100100

@@ -109,7 +109,7 @@ struct SelectPass final : public impl::SelectPassBase<SelectPass> {
109109
return;
110110
}
111111

112-
op->emitError("Unhandled condition value: ") << condAttrValue;
112+
op->emitError("unhandled condition value: ") << condAttrValue;
113113
return signalPassFailure();
114114
}
115115

0 commit comments

Comments
 (0)