[CodeGen] Avoid deprecated Address constructor
This commit is contained in:
		
							parent
							
								
									3a272d1eaf
								
							
						
					
					
						commit
						acc39873b7
					
				| 
						 | 
					@ -2109,6 +2109,7 @@ llvm::Value *CodeGenFunction::emitArrayLength(const ArrayType *origArrayType,
 | 
				
			||||||
    // Create the actual GEP.
 | 
					    // Create the actual GEP.
 | 
				
			||||||
    addr = Address(Builder.CreateInBoundsGEP(
 | 
					    addr = Address(Builder.CreateInBoundsGEP(
 | 
				
			||||||
        addr.getElementType(), addr.getPointer(), gepIndices, "array.begin"),
 | 
					        addr.getElementType(), addr.getPointer(), gepIndices, "array.begin"),
 | 
				
			||||||
 | 
					        ConvertTypeForMem(eltType),
 | 
				
			||||||
        addr.getAlignment());
 | 
					        addr.getAlignment());
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue