projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4986a41
)
[clang] Remove Address::deprecated() in CGCXXABI.h
author
Arthur Eubanks
<aeubanks@google.com>
Thu, 17 Feb 2022 22:22:39 +0000
(14:22 -0800)
committer
Arthur Eubanks
<aeubanks@google.com>
Thu, 17 Feb 2022 22:23:02 +0000
(14:23 -0800)
clang/lib/CodeGen/CGCXXABI.h
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGCXXABI.h
b/clang/lib/CodeGen/CGCXXABI.h
index
ba073b3
..
a46f7f3
100644
(file)
--- a/
clang/lib/CodeGen/CGCXXABI.h
+++ b/
clang/lib/CodeGen/CGCXXABI.h
@@
-56,7
+56,10
@@
protected:
return CGF.CXXABIThisValue;
}
Address getThisAddress(CodeGenFunction &CGF) {
- return Address::deprecated(CGF.CXXABIThisValue, CGF.CXXABIThisAlignment);
+ return Address(
+ CGF.CXXABIThisValue,
+ CGF.ConvertTypeForMem(CGF.CXXABIThisDecl->getType()->getPointeeType()),
+ CGF.CXXABIThisAlignment);
}
/// Issue a diagnostic about unsupported features in the ABI.