Merge remote-tracking branch 'origin/GP-3700_Dan_fixDsPic33fReturn' into

patch (Closes #5609)
This commit is contained in:
Ryan Kurtz
2023-08-04 06:29:54 -04:00

View File

@@ -411,7 +411,9 @@ public class PcodeExecutor<T> {
* @param frame the frame to finish
*/
protected void branchToOffset(T offset, PcodeFrame frame) {
state.setVar(pc, offset);
T truncOff = arithmetic.unaryOp(PcodeOp.COPY, pc.getMinimumByteSize(),
(int) arithmetic.sizeOf(offset), offset);
state.setVar(pc, truncOff);
frame.finishAsBranch();
}