about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2023-01-23 22:56:04 +0000
committerDavid Carlier <devnexen@gmail.com>2023-01-23 22:56:04 +0000
commit5837322310b0dc8a05347384900e7fbfcd1db42b (patch)
treebff9eb87491747c5b2c842a992c64eaffea9e3d5
parentafd2ea90dfdb9aa7668c482e7c427f95c4847843 (diff)
downloadafl++-5837322310b0dc8a05347384900e7fbfcd1db42b.tar.gz
erase the switch instruction from the current parent
-rw-r--r--instrumentation/split-switches-pass.so.cc2
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