Fix deref expecting a codegenptr and not borrow
This commit is contained in:
		
							parent
							
								
									87a8eac61b
								
							
						
					
					
						commit
						6664b25932
					
				| @ -1,6 +1,7 @@ | |||||||
| fn main() { | fn main() -> u8 { | ||||||
|     let mut a = 5; |     let mut a = 5; | ||||||
|     inner(&mut a); |     inner(&mut a); | ||||||
|  |     return 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| fn inner(a: &mut i32) { | fn inner(a: &mut i32) { | ||||||
|  | |||||||
| @ -1179,7 +1179,7 @@ impl mir::Expression { | |||||||
| 
 | 
 | ||||||
|                 Some({ |                 Some({ | ||||||
|                     if state.should_load { |                     if state.should_load { | ||||||
|                         if let TypeKind::CodegenPtr(inner) = *ptr_inner.clone() { |                         if let TypeKind::Borrow(inner, _) = *ptr_inner.clone() { | ||||||
|                             StackValue( |                             StackValue( | ||||||
|                                 v.0.derive( |                                 v.0.derive( | ||||||
|                                     scope |                                     scope | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user