diff --git a/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp b/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp index 677418a5370551..026028447e6134 100644 --- a/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp +++ b/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp @@ -38,7 +38,7 @@ mlir::Attribute TypeAttr = mlir::TypeAttr::get(IndexType); mlir::Attribute ArrayAttr = mlir::ArrayAttr::get(&Context, {UnitAttr}); mlir::Attribute StringAttr = mlir::StringAttr::get(&Context, "foo"); mlir::Attribute ElementsAttr = mlir::DenseElementsAttr::get( - VectorType.cast(), llvm::ArrayRef{2.0f, 3.0f}); + mlir::cast(VectorType), llvm::ArrayRef{2.0f, 3.0f}); int main() { // Reference symbols that might otherwise be stripped.