From 9e1aaa9943b814c22ae03f4abb3171dac8062801 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 7 Jan 2021 21:30:39 +0000 Subject: [PATCH] Fix check-gdb-mlir-support build after MLIR API changed to take Context as first argument --- debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp b/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp index a65f624..629ef16 100644 --- a/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp +++ b/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp @@ -15,13 +15,13 @@ mlir::Value Value({reinterpret_cast(0x8), mlir::Type Type(nullptr); mlir::Type IndexType = mlir::IndexType::get(&Context); mlir::Type IntegerType = - mlir::IntegerType::get(3, mlir::IntegerType::Unsigned, &Context); + mlir::IntegerType::get(&Context, 3, mlir::IntegerType::Unsigned); mlir::Type FloatType = mlir::Float32Type::get(&Context); mlir::Type MemRefType = mlir::MemRefType::get({4, 5}, FloatType); mlir::Type UnrankedMemRefType = mlir::UnrankedMemRefType::get(IntegerType, 6); mlir::Type VectorType = mlir::VectorType::get({1, 2}, FloatType); mlir::Type TupleType = - mlir::TupleType::get(mlir::TypeRange({IndexType, FloatType}), &Context); + mlir::TupleType::get(&Context, mlir::TypeRange({IndexType, FloatType})); auto UnknownLoc = mlir::UnknownLoc::get(&Context); auto FileLineColLoc = mlir::FileLineColLoc::get("file", 7, 8, &Context); -- 2.7.4