mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	gh-115796: fix exception table construction in _testinternalcapi.assemble_code_object (#115797)
This commit is contained in:
		
							parent
							
								
									8aa372edcd
								
							
						
					
					
						commit
						96c1737591
					
				
					 3 changed files with 52 additions and 8 deletions
				
			
		|  | @ -665,12 +665,6 @@ translate_jump_labels_to_targets(basicblock *entryblock) | |||
|     return SUCCESS; | ||||
| } | ||||
| 
 | ||||
| int | ||||
| _PyCfg_JumpLabelsToTargets(cfg_builder *g) | ||||
| { | ||||
|     return translate_jump_labels_to_targets(g->g_entryblock); | ||||
| } | ||||
| 
 | ||||
| static int | ||||
| mark_except_handlers(basicblock *entryblock) { | ||||
| #ifndef NDEBUG | ||||
|  | @ -2790,3 +2784,14 @@ _PyCfg_OptimizedCfgToInstructionSequence(cfg_builder *g, | |||
| 
 | ||||
|     return SUCCESS; | ||||
| } | ||||
| 
 | ||||
| /* This is used by _PyCompile_Assemble to fill in the jump and exception
 | ||||
|  * targets in a synthetic CFG (which is not the ouptut of the builtin compiler). | ||||
|  */ | ||||
| int | ||||
| _PyCfg_JumpLabelsToTargets(cfg_builder *g) | ||||
| { | ||||
|     RETURN_IF_ERROR(translate_jump_labels_to_targets(g->g_entryblock)); | ||||
|     RETURN_IF_ERROR(label_exception_targets(g->g_entryblock)); | ||||
|     return SUCCESS; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Irit Katriel
						Irit Katriel