We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1b1bfa commit 63a2969Copy full SHA for 63a2969
cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp
@@ -38,7 +38,7 @@ mlir::Attribute TypeAttr = mlir::TypeAttr::get(IndexType);
38
mlir::Attribute ArrayAttr = mlir::ArrayAttr::get(&Context, {UnitAttr});
39
mlir::Attribute StringAttr = mlir::StringAttr::get(&Context, "foo");
40
mlir::Attribute ElementsAttr = mlir::DenseElementsAttr::get(
41
- VectorType.cast<mlir::ShapedType>(), llvm::ArrayRef<float>{2.0f, 3.0f});
+ mlir::cast<mlir::ShapedType>(VectorType), llvm::ArrayRef<float>{2.0f, 3.0f});
42
43
int main() {
44
// Reference symbols that might otherwise be stripped.
0 commit comments