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

Jannik Silvanus via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 19 03:09:39 PST 2022


jsilvanus added a comment.

In D139973#4004344 <https://reviews.llvm.org/D139973#4004344>, @barannikov88 wrote:

> - std::any uses RTTI, so it is unlikely to ever replace llvm::Any.

I just checked on Godbolt that gcc 12.2 with libstdc++, clang 15.0 with both libstd++ and libc++ and MSVC 19.33 support `std::any` without RTTI. 
But gcc and clang do not provide `std::any::type` without RTTI though.

Are you aware of any documentation on what can be relied on without RTTI?


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