Skip to content

Commit 91f083b

Browse files
authored
Change error handling to return failure instead of error
1 parent f2fefb3 commit 91f083b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Dialect/OM/Evaluator/Evaluator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ circt::om::Evaluator::getOrCreateValue(Value value, Location loc) {
399399
auto error = arg.getOwner()->getParentOp()->emitError(
400400
"unable to evaluate unbound parameter");
401401
error.attachNote() << "value: " << value;
402-
return error;
402+
return failure();
403403
})
404404
.Case([&](OpResult result) {
405405
return TypeSwitch<Operation *,

0 commit comments

Comments
 (0)