[debuginfo-tests] 633549f - debuginfo-tests: Fix check-gdb-mlir-support build after MLIR API change in a4bb667d831c
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 14 22:10:26 PDT 2021
Author: Nathan Chancellor
Date: 2021-03-15T05:10:15Z
New Revision: 633549f73eca2e8cd26b01e980bace833713f217
URL: https://github.com/llvm/llvm-project/commit/633549f73eca2e8cd26b01e980bace833713f217
DIFF: https://github.com/llvm/llvm-project/commit/633549f73eca2e8cd26b01e980bace833713f217.diff
LOG: debuginfo-tests: Fix check-gdb-mlir-support build after MLIR API change in a4bb667d831c
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D98613
Added:
Modified:
debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp
Removed:
################################################################################
diff --git a/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp b/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp
index a1d62f509b21..9a65ad377fd5 100644
--- a/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp
+++ b/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp
@@ -24,11 +24,11 @@ mlir::Type TupleType =
mlir::TupleType::get(&Context, mlir::TypeRange({IndexType, FloatType}));
auto UnknownLoc = mlir::UnknownLoc::get(&Context);
-auto FileLineColLoc = mlir::FileLineColLoc::get("file", 7, 8, &Context);
+auto FileLineColLoc = mlir::FileLineColLoc::get(&Context, "file", 7, 8);
auto OpaqueLoc = mlir::OpaqueLoc::get<uintptr_t>(9, &Context);
auto NameLoc = mlir::NameLoc::get(Identifier);
auto CallSiteLoc = mlir::CallSiteLoc::get(FileLineColLoc, OpaqueLoc);
-auto FusedLoc = mlir::FusedLoc::get({FileLineColLoc, NameLoc}, &Context);
+auto FusedLoc = mlir::FusedLoc::get(&Context, {FileLineColLoc, NameLoc});
mlir::Attribute UnitAttr = mlir::UnitAttr::get(&Context);
mlir::Attribute FloatAttr = mlir::FloatAttr::get(FloatType, 1.0);
More information about the llvm-commits
mailing list