Revert "[BE][4/16] fix typos in torch/ (torch/_dynamo/) (#156314)"

This reverts commit ead741c5fb0036e0fc95b79d4fe1af3a426e1306.

Reverted https://github.com/pytorch/pytorch/pull/156314 on behalf of https://github.com/atalman due to export/test_torchbind.py::TestCompileTorchbind::test_compile_error_on_input_aliasing_contents_backend_aot_eager [GH job link](https://github.com/pytorch/pytorch/actions/runs/15804799771/job/44548489912) [HUD commit link](c95f7fa874) ([comment](https://github.com/pytorch/pytorch/pull/156313#issuecomment-2994171213))
This commit is contained in:
PyTorch MergeBot
2025-06-22 12:31:57 +00:00
parent 145d4cdc11
commit 5b427c92a8
30 changed files with 71 additions and 72 deletions

View File

@ -1649,7 +1649,7 @@ def bytecode_from_template(fn, varname_map=None, noreturn=True, noprefix=True):
# replace returns with jumps
for inst in returns:
# don't replace inst with new instruction
# due to targeting/exn table/etc.
# due to targetting/exn table/etc.
jump_inst = create_jump_absolute(insts[-1])
inst.opname = jump_inst.opname
inst.opcode = jump_inst.opcode