mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
[asan] revert r175266 as it breaks code with packed structures. supporting long double will require a more general solution
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -639,7 +639,7 @@ void AddressSanitizer::instrumentMop(Instruction *I) {
|
||||
Type *OrigTy = cast<PointerType>(OrigPtrTy)->getElementType();
|
||||
|
||||
assert(OrigTy->isSized());
|
||||
uint32_t TypeSize = TD->getTypeAllocSizeInBits(OrigTy);
|
||||
uint32_t TypeSize = TD->getTypeStoreSizeInBits(OrigTy);
|
||||
|
||||
if (TypeSize != 8 && TypeSize != 16 &&
|
||||
TypeSize != 32 && TypeSize != 64 && TypeSize != 128) {
|
||||
|
Reference in New Issue
Block a user