llvm-project/clang/unittests/CodeGen
Alex Richardson a602f76a24 [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
2022-11-30 20:24:01 +00:00
..
BufferSourceTest.cpp
CMakeLists.txt
CheckTargetFeaturesTest.cpp Use the public clang::Builtin API in the unit test 2022-05-20 18:09:09 +02:00
CodeGenExternalTest.cpp
IRMatchers.h
TBAAMetadataTest.cpp [tbaa] Handle base classes in struct tbaa 2022-07-06 14:37:59 +02:00
TestCompiler.h [clang][TargetInfo] Use LangAS for getPointer{Width,Align}() 2022-11-30 20:24:01 +00:00