mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	gh-98879: Remove unreachable error case from COMPARE_OP_STR_JUMP (GH-98882)
Thanks to PEP 623 changes, the comparison cannot fail.
This commit is contained in:
		
							parent
							
								
									018b2483c4
								
							
						
					
					
						commit
						87b5fd9d9d
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		|  | @ -3420,9 +3420,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int | ||||||
|             DEOPT_IF(!PyUnicode_CheckExact(right), COMPARE_OP); |             DEOPT_IF(!PyUnicode_CheckExact(right), COMPARE_OP); | ||||||
|             STAT_INC(COMPARE_OP, hit); |             STAT_INC(COMPARE_OP, hit); | ||||||
|             int res = _PyUnicode_Equal(left, right); |             int res = _PyUnicode_Equal(left, right); | ||||||
|             if (res < 0) { |  | ||||||
|                 goto error; |  | ||||||
|             } |  | ||||||
|             assert(oparg == Py_EQ || oparg == Py_NE); |             assert(oparg == Py_EQ || oparg == Py_NE); | ||||||
|             JUMPBY(INLINE_CACHE_ENTRIES_COMPARE_OP); |             JUMPBY(INLINE_CACHE_ENTRIES_COMPARE_OP); | ||||||
|             NEXTOPARG(); |             NEXTOPARG(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dennis Sweeney
						Dennis Sweeney