diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/block.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/block.cc index b57fda99dd..8cbbe63956 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/block.cc +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/block.cc @@ -301,6 +301,18 @@ void FlowBlock::setGotoBranch(int4 i) outofthis[i].point->flags |= f_interior_gotoin; } +/// The switch can have exactly 1 default edge, so we make sure other edges are not marked. +/// \param pos is the index of the \e out edge that should be the default +void FlowBlock::setDefaultSwitch(int4 pos) + +{ + for(int4 i=0;i