Author: Arthur Eubanks Date: 2022-01-27T14:18:54-08:00 New Revision: f17123831e47073f7850ea17560bc1f756b65298
URL: https://github.com/llvm/llvm-project/commit/f17123831e47073f7850ea17560bc1f756b65298 DIFF: https://github.com/llvm/llvm-project/commit/f17123831e47073f7850ea17560bc1f756b65298.diff LOG: [NFC][Clang][OpaquePtr] Move away from deprecated Address constructor in CreateTempAlloca() Specify the Address element type, which is the bitcast destination type. (the whole bitcast won't be needed after opaque pointers) Added: Modified: clang/lib/CodeGen/CGExpr.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 0fb7ec26a85e..bb5d18b74894 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -150,7 +150,7 @@ Address CodeGenFunction::CreateMemTemp(QualType Ty, CharUnits Align, Result = Address( Builder.CreateBitCast(Result.getPointer(), VectorTy->getPointerTo()), - Result.getAlignment()); + VectorTy, Result.getAlignment()); } return Result; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits