[PATCH] D105168: [RISCV] Unify the arch string parsing logic to RISCVISAInfo.

luxufan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 11 23:39:22 PDT 2021


StephenFan added inline comments.


================
Comment at: llvm/lib/Support/RISCVISAInfo.cpp:115
+  return make_filter_range(SupportedExtensionInfos,
+                           [&](const RISCVSupportedExtensionInfo &ExtInfo) {
+                             return ExtInfo.Name == ExtName;
----------------
This lambda function will keep alive out of current scope.
Maybe the `[&]` should change to `[ExtName]`




Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105168



More information about the cfe-commits mailing list