We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b44639 commit ec871cfCopy full SHA for ec871cf
clang/lib/AST/ByteCode/Pointer.h
@@ -653,15 +653,6 @@ class Pointer {
653
return *reinterpret_cast<T *>(asBlockPointer().Pointee->rawData() + Offset);
654
}
655
656
- /// Dereferences a primitive element.
657
- template <typename T> T &elem(unsigned I) const {
658
- assert(I < getNumElems());
659
- assert(isBlockPointer());
660
- assert(asBlockPointer().Pointee);
661
- return reinterpret_cast<T *>(asBlockPointer().Pointee->data() +
662
- sizeof(InitMapPtr))[I];
663
- }
664
-
665
/// Whether this block can be read from at all. This is only true for
666
/// block pointers that point to a valid location inside that block.
667
bool isDereferencable() const {
0 commit comments