diff options
author | vanhauser-thc <vh@thc.org> | 2023-02-20 15:43:54 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-02-20 15:43:54 +0100 |
commit | b786558dea5fd5dca471a0e36a8b420ff6a65846 (patch) | |
tree | f7055992a36cc143a00fab61dea7f652cc174432 /instrumentation/afl-llvm-common.cc | |
parent | ebaac23a514cd3950d4a6cb597bd921e13ab9baa (diff) | |
download | afl++-b786558dea5fd5dca471a0e36a8b420ff6a65846.tar.gz |
Revert "LLVM cmplog factoring custom Instruction iterator with added restriction"
This reverts commit 8bc3fa1df286aac46a0a724f64e2e07010d2497e.
Diffstat (limited to 'instrumentation/afl-llvm-common.cc')
-rw-r--r-- | instrumentation/afl-llvm-common.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/instrumentation/afl-llvm-common.cc b/instrumentation/afl-llvm-common.cc index b50269fe..dc34d191 100644 --- a/instrumentation/afl-llvm-common.cc +++ b/instrumentation/afl-llvm-common.cc @@ -582,24 +582,6 @@ bool isInInstrumentList(llvm::Function *F, std::string Filename) { } -template <class Iterator> -Iterator Unique(Iterator first, Iterator last) { - static_assert(std::is_trivially_copyable< - typename std::iterator_traits<Iterator> - >::value_type, "Invalid underlying type"); - - while (first != last) { - - Iterator next(first); - last = std::remove(++next, last, *first); - first = next; - - } - - return last; - -} - // Calculate the number of average collisions that would occur if all // location IDs would be assigned randomly (like normal afl/afl++). // This uses the "balls in bins" algorithm. |