Fix compile error with libstdc++.
By adding a ctor to create fuzzer_allocator<T> from fuzzer_allocator<U>.
This mimics construcotrs of std::allocator<T>.
Without the constructors, some versions of libstdc++ can't compile
`vector<bool, fuzzer_allocator<bool>>`.
llvm-svn: 334077
GitOrigin-RevId: b7c374500607486d56ae16195b57ea737fa2e5a5
diff --git a/FuzzerDefs.h b/FuzzerDefs.h
index dde1b4b..4868bc2 100644
--- a/FuzzerDefs.h
+++ b/FuzzerDefs.h
@@ -155,6 +155,11 @@
template<typename T>
class fuzzer_allocator: public std::allocator<T> {
public:
+ fuzzer_allocator() = default;
+
+ template<class U>
+ fuzzer_allocator(const fuzzer_allocator<U>&) {}
+
template<class Other>
struct rebind { typedef fuzzer_allocator<Other> other; };
};