[PATCH] D98613: debuginfo-tests: Fix check-gdb-mlir-support build after MLIR API change in a4bb667d831c

Nathan Chancellor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 14 17:16:02 PDT 2021


nathanchance created this revision.
Herald added subscribers: dcaballe, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, rriddle, mehdi_amini.
nathanchance requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer, nicolasvasilache.
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98613

Files:
  debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp


Index: debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp
===================================================================
--- debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp
+++ debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp
@@ -24,11 +24,11 @@
     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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98613.330543.patch
Type: text/x-patch
Size: 1015 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210315/88d8f066/attachment.bin>


More information about the llvm-commits mailing list