diff options
author | Ahmed Bougacha <ahmed@bougacha.org> | 2024-05-20 10:23:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 10:23:04 -0700 |
commit | 3575d23ca866e0510b322e4520d6cbcebee18c22 (patch) | |
tree | b6f7dd5b8b5f1fe3e1356f660dd8b26edad1ed3e /clang/lib/CodeGen/CGException.cpp | |
parent | 1de1f775b55bb5c4c739e8f7ac78e7f59f2645fb (diff) | |
download | llvm-3575d23ca866e0510b322e4520d6cbcebee18c22.zip llvm-3575d23ca866e0510b322e4520d6cbcebee18c22.tar.gz llvm-3575d23ca866e0510b322e4520d6cbcebee18c22.tar.bz2 |
[clang][CodeGen] Remove unused LValue::getAddress CGF arg. (#92465)
This is in effect a revert of f139ae3d93797, as we have since gained a
more sophisticated way of doing extra IRGen with the addition of
RawAddress in #86923.
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 8acda3f..bb2ed23 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -1989,8 +1989,7 @@ void CodeGenFunction::EmitCapturedLocals(CodeGenFunction &ParentCGF, LValue ThisFieldLValue = EmitLValueForLambdaField(LambdaThisCaptureField); if (!LambdaThisCaptureField->getType()->isPointerType()) { - CXXThisValue = - ThisFieldLValue.getAddress(*this).emitRawPointer(*this); + CXXThisValue = ThisFieldLValue.getAddress().emitRawPointer(*this); } else { CXXThisValue = EmitLoadOfLValue(ThisFieldLValue, SourceLocation()) .getScalarVal(); |