diff options
| author | van Hauser <vh@thc.org> | 2023-02-14 05:42:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-14 05:42:45 +0100 |
| commit | b352e3d1cc51c450c0ba128cac011cab607eb887 (patch) | |
| tree | f28e1eaa8ce45c27b413a22cc6ed54aea339f5ae /instrumentation/cmplog-switches-pass.cc | |
| parent | 6030df2f563c8c5bf482217478375a6b7ea3b15a (diff) | |
| parent | 8bc3fa1df286aac46a0a724f64e2e07010d2497e (diff) | |
| download | afl++-b352e3d1cc51c450c0ba128cac011cab607eb887.tar.gz | |
Merge pull request #1646 from devnexen/llvm_custom_unique_refactoring
LLVM cmplog factoring custom Instruction iterator with added restriction
Diffstat (limited to 'instrumentation/cmplog-switches-pass.cc')
| -rw-r--r-- | instrumentation/cmplog-switches-pass.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/instrumentation/cmplog-switches-pass.cc b/instrumentation/cmplog-switches-pass.cc index cd0ae76d..f4a9fbd7 100644 --- a/instrumentation/cmplog-switches-pass.cc +++ b/instrumentation/cmplog-switches-pass.cc @@ -131,21 +131,6 @@ llvmGetPassPluginInfo() { char CmplogSwitches::ID = 0; #endif -template <class Iterator> -Iterator Unique(Iterator first, Iterator last) { - - while (first != last) { - - Iterator next(first); - last = std::remove(++next, last, *first); - first = next; - - } - - return last; - -} - bool CmplogSwitches::hookInstrs(Module &M) { std::vector<SwitchInst *> switches; |
