Skip to content

Commit ac2635e

Browse files
committed
Revert "[ADT] Fix SmallVector unused template instantiation on 32-bit systems."
This reverts commit 25e2e92. Buildbot failure.
1 parent 25e2e92 commit ac2635e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

llvm/lib/Support/SmallVector.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,4 @@ void SmallVectorBase<Size_T>::grow_pod(void *FirstEl, size_t MinCapacity,
7878
}
7979

8080
template class llvm::SmallVectorBase<uint32_t>;
81-
82-
// Disable the uint64_t instantiation for 32-bit builds.
83-
// Both uint32_t and uint64_t instantations are needed for 64-bit builds.
84-
// This instantiation will never be used in 32-bit builds, and will cause
85-
// warnings when sizeof(Size_T) > sizeof(size_t).
86-
#if SIZE_MAX > UINT32_MAX
8781
template class llvm::SmallVectorBase<uint64_t>;
88-
89-
// Assertions to ensure this #if stays in sync with SmallVectorSizeType.
90-
static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint64_t),
91-
"Expected SmallVectorBase<uint64_t> variant to be in use.");
92-
#else
93-
static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint32_t),
94-
"Expected SmallVectorBase<uint32_t> variant to be in use.");
95-
#endif

0 commit comments

Comments
 (0)