Skip to content

Commit f05b24f

Browse files
committed
[mlir] Reland 5e83638 with update (NFC)
Excluded updates to mlir/lib/AsmParser/Parser.cpp , which caused LIT failure "FAIL: MLIR::completion.test" on multiple buildbots.
1 parent 43bfc40 commit f05b24f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Bindings/Python/IRAttributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ class PyDenseElementsAttribute
708708
llvm::raw_string_ostream os(message);
709709
os << "Expected a static ShapedType for the shaped_type parameter: "
710710
<< py::repr(py::cast(*explicitType));
711-
throw py::value_error(os.str());
711+
throw py::value_error(message);
712712
}
713713
shapedType = *explicitType;
714714
} else {
@@ -732,7 +732,7 @@ class PyDenseElementsAttribute
732732
os << "All attributes must be of the same type and match "
733733
<< "the type parameter: expected=" << py::repr(py::cast(shapedType))
734734
<< ", but got=" << py::repr(py::cast(attrType));
735-
throw py::value_error(os.str());
735+
throw py::value_error(message);
736736
}
737737
}
738738

0 commit comments

Comments
 (0)