[mlir][Inliner] Store the resolved call by-value instead of by-reference
authorRiver Riddle <riddleriver@gmail.com>
Thu, 16 Apr 2020 00:41:31 +0000 (17:41 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Thu, 16 Apr 2020 00:42:27 +0000 (17:42 -0700)
commit4f37450b2cb2dfc3c201a1b87f25062560ef3327
treec6430541f0a59b2de83cbfc0a879eff8ea5ac721
parent2ba12ff1e51aee7d33233f95734937d44c4a1282
[mlir][Inliner] Store the resolved call by-value instead of by-reference

This avoids asan failures as more calls may be added during inlining, invalidating the reference.

Differential Revision: https://reviews.llvm.org/D78258
mlir/lib/Transforms/Inliner.cpp