forked from OSchip/llvm-project
[clang] Remove Address::deprecated() call in CGExprCXX.cpp
This commit is contained in:
parent
f755806813
commit
0e219af475
|
@ -2101,10 +2101,9 @@ void CodeGenFunction::EmitCXXDeleteExpr(const CXXDeleteExpr *E) {
|
|||
GEP.push_back(Zero);
|
||||
}
|
||||
|
||||
Ptr = Address::deprecated(Builder.CreateInBoundsGEP(Ptr.getElementType(),
|
||||
Ptr.getPointer(), GEP,
|
||||
"del.first"),
|
||||
Ptr.getAlignment());
|
||||
Ptr = Address(Builder.CreateInBoundsGEP(Ptr.getElementType(),
|
||||
Ptr.getPointer(), GEP, "del.first"),
|
||||
ConvertTypeForMem(DeleteTy), Ptr.getAlignment());
|
||||
}
|
||||
|
||||
assert(ConvertTypeForMem(DeleteTy) == Ptr.getElementType());
|
||||
|
|
Loading…
Reference in New Issue