llvm.org GIT mirror llvm / 605ff66
[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 Kostya Serebryany 6 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
638638 Type *OrigTy = cast(OrigPtrTy)->getElementType();
639639
640640 assert(OrigTy->isSized());
641 uint32_t TypeSize = TD->getTypeAllocSizeInBits(OrigTy);
641 uint32_t TypeSize = TD->getTypeStoreSizeInBits(OrigTy);
642642
643643 if (TypeSize != 8 && TypeSize != 16 &&
644644 TypeSize != 32 && TypeSize != 64 && TypeSize != 128) {
9595 }
9696
9797 ; CHECK: LongDoubleTest
98 ; CHECK: __asan_report_store16
98 ; CHECK-NOT: __asan_report_store16
9999 ; CHECK: ret void