[PATCH] D149879: [MachineFunction][DebugInfo][nfc] Introduce EntryValue variable kind

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 5 08:17:09 PDT 2023


aprantl added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/MachineFunction.h:1295
+  auto getInStackSlotVariableDbgInfo() const {
+    return make_filter_range(getVariableDbgInfo(), [](const auto &VarInfo) {
+      return VarInfo.inStackSlot();
----------------
fdeazeve wrote:
> aprantl wrote:
> > this lambda is different from the one above in that it uses const auto
> Unfortunately there isn't much we can do about that prior C++23's "deducing this" feature  :/
> This is the `const` version of the function above
Oh I didn't realize that this was actually necessary because it affects the return type.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149879



More information about the llvm-commits mailing list