diff options
| author | David Carlier <devnexen@gmail.com> | 2023-01-23 22:56:04 +0000 |
|---|---|---|
| committer | David Carlier <devnexen@gmail.com> | 2023-01-23 22:56:04 +0000 |
| commit | 5837322310b0dc8a05347384900e7fbfcd1db42b (patch) | |
| tree | bff9eb87491747c5b2c842a992c64eaffea9e3d5 | |
| parent | afd2ea90dfdb9aa7668c482e7c427f95c4847843 (diff) | |
| download | afl++-5837322310b0dc8a05347384900e7fbfcd1db42b.tar.gz | |
erase the switch instruction from the current parent
| -rw-r--r-- | instrumentation/split-switches-pass.so.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/split-switches-pass.so.cc b/instrumentation/split-switches-pass.so.cc index aeb9c48e..dcd89652 100644 --- a/instrumentation/split-switches-pass.so.cc +++ b/instrumentation/split-switches-pass.so.cc @@ -469,7 +469,7 @@ bool SplitSwitchesTransform::splitSwitches(Module &M) { /* We are now done with the switch instruction, delete it. */ #if LLVM_VERSION_MAJOR >= 16 - // TODO to erase range of instructions instead ? + SI->eraseFromParent(); #else CurBlock->getInstList().erase(SI); #endif |
