aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorkazutakahirata <57370056+kazutakahirata@users.noreply.github.com>2023-09-07 09:07:40 -0700
committerGitHub <noreply@github.com>2023-09-07 09:07:40 -0700
commitf8a1c8b7c1d06a74fa38111454c42e22e118d584 (patch)
treeba82397a910ffa18bc45e283bc2956f88c5d1d5b /llvm/lib/IR/Module.cpp
parenta279bf0d7816fd08b5976f3f05779215f3254975 (diff)
downloadllvm-f8a1c8b7c1d06a74fa38111454c42e22e118d584.zip
llvm-f8a1c8b7c1d06a74fa38111454c42e22e118d584.tar.gz
llvm-f8a1c8b7c1d06a74fa38111454c42e22e118d584.tar.bz2
[llvm] Use llvm::any_cast instead of any_cast (NFC) (#65565)
This patch replaces any_cast with llvm::any_cast. This in turn allows us to gracefully switch to std::any in future by forwarding llvm::Any and llvm::any_cast to: using Any = std::any; template <class T> T *any_cast(Any *Value) { return std::any_cast<T>(Value); } respectively. Without this patch, it's ambiguous whether any_cast refers to std::any_cast or llvm::any_cast. As an added bonus, this patch makes it easier to mechanically replace llvm::any_cast with std::any_cast without affecting other occurrences of any_cast (e.g. in libcxx).
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions