[PATCH] D78258: [mlir][Inliner] Store the resolved call by-value instead of by-reference

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 18:15:27 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4f37450b2cb2: [mlir][Inliner] Store the resolved call by-value instead of by-reference (authored by rriddle).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78258/new/

https://reviews.llvm.org/D78258

Files:
  mlir/lib/Transforms/Inliner.cpp


Index: mlir/lib/Transforms/Inliner.cpp
===================================================================
--- mlir/lib/Transforms/Inliner.cpp
+++ mlir/lib/Transforms/Inliner.cpp
@@ -455,7 +455,7 @@
   // here as more calls may be added during inlining.
   bool inlinedAnyCalls = false;
   for (unsigned i = 0; i != calls.size(); ++i) {
-    ResolvedCall &it = calls[i];
+    ResolvedCall it = calls[i];
     LLVM_DEBUG({
       llvm::dbgs() << "* Considering inlining call: ";
       it.call.dump();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78258.257925.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200416/cb10906c/attachment-0001.bin>


More information about the llvm-commits mailing list