Skip to content

Commit 87d5152

Browse files
authored
Automated sync from github.com/tensorflow/tensorflow (#3027)
BUG=automated sync from upstream NO_CHECK_TFLITE_FILES=automated sync from upstream
1 parent 01e31b7 commit 87d5152

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tensorflow/lite/core/api/flatbuffer_conversions.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ class BuiltinDataAllocator {
4242
// deallocation.
4343
template <typename T>
4444
T* AllocatePOD() {
45-
// TODO(b/154346074): Change this to is_trivially_destructible when all
46-
// platform targets support that properly.
47-
static_assert(std::is_pod<T>::value, "Builtin data structure must be POD.");
45+
static_assert(std::is_trivially_destructible<T>::value,
46+
"Builtin data structure must be POD.");
4847
void* allocated_memory = this->Allocate(sizeof(T), alignof(T));
4948
return new (allocated_memory) T();
5049
}

0 commit comments

Comments
 (0)