about summary refs log tree commit diff
path: root/instrumentation/split-switches-pass.so.cc
diff options
context:
space:
mode:
Diffstat (limited to 'instrumentation/split-switches-pass.so.cc')
-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