https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/114046
Unused. >From 2c6f0fa434d770b258d75660767390af4dfb8ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbae...@redhat.com> Date: Tue, 29 Oct 2024 08:15:36 +0100 Subject: [PATCH] [clang][bytecode][NFC] Remove Pointer::elem() Unused. --- clang/lib/AST/ByteCode/Pointer.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/clang/lib/AST/ByteCode/Pointer.h b/clang/lib/AST/ByteCode/Pointer.h index 72e255dba13f6b..457fe93b278175 100644 --- a/clang/lib/AST/ByteCode/Pointer.h +++ b/clang/lib/AST/ByteCode/Pointer.h @@ -653,15 +653,6 @@ class Pointer { return *reinterpret_cast<T *>(asBlockPointer().Pointee->rawData() + Offset); } - /// Dereferences a primitive element. - template <typename T> T &elem(unsigned I) const { - assert(I < getNumElems()); - assert(isBlockPointer()); - assert(asBlockPointer().Pointee); - return reinterpret_cast<T *>(asBlockPointer().Pointee->data() + - sizeof(InitMapPtr))[I]; - } - /// Whether this block can be read from at all. This is only true for /// block pointers that point to a valid location inside that block. bool isDereferencable() const { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits