[Lldb-commits] [PATCH] D139973: [llvm] Make llvm::Any similar to std::any

Sergei Barannikov via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 19 04:42:03 PST 2022


barannikov88 added inline comments.


================
Comment at: llvm/lib/Passes/StandardInstrumentations.cpp:193
 
-  if (any_isa<const Function *>(IR)) {
-    const Function *F = any_cast<const Function *>(IR);
-    return F->getName().str();
+  if (const auto **F = any_cast<const Function *>(&IR)) {
+    return (*F)->getName().str();
----------------
Redundant braces.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139973



More information about the lldb-commits mailing list