aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorAlex Richardson <alexrichardson@google.com>2022-11-18 12:14:00 +0000
committerAlex Richardson <alexrichardson@google.com>2022-11-30 20:24:01 +0000
commita602f76a2406cc3edd6b297ede3583b26513a34c (patch)
treeff026455684f7aeff22923436910e84965cbdbfe /llvm/lib/CodeGen/CodeGen.cpp
parent57b1c0250d5da6ac5342f10cd8f046412a46f153 (diff)
downloadllvm-a602f76a2406cc3edd6b297ede3583b26513a34c.zip
llvm-a602f76a2406cc3edd6b297ede3583b26513a34c.tar.gz
llvm-a602f76a2406cc3edd6b297ede3583b26513a34c.tar.bz2
[clang][TargetInfo] Use LangAS for getPointer{Width,Align}()
Mixing LLVM and Clang address spaces can result in subtle bugs, and there is no need for this hook to use the LLVM IR level address spaces. Most of this change is just replacing zero with LangAS::Default, but it also allows us to remove a few calls to getTargetAddressSpace(). This also removes a stale comment+workaround in CGDebugInfo::CreatePointerLikeType(): ASTContext::getTypeSize() does return the expected size for ReferenceType (and handles address spaces). Differential Revision: https://reviews.llvm.org/D138295
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions