forked from OSchip/llvm-project
[asan] revert r175266 as it breaks code with packed structures. supporting long double will require a more general solution
llvm-svn: 175442
This commit is contained in:
parent
9ed9ade0ef
commit
7ca384bc1a
|
@ -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) {
|
||||
|
|
|
@ -96,5 +96,5 @@ entry:
|
|||
}
|
||||
|
||||
; CHECK: LongDoubleTest
|
||||
; CHECK: __asan_report_store16
|
||||
; CHECK-NOT: __asan_report_store16
|
||||
; CHECK: ret void
|
||||
|
|
Loading…
Reference in New Issue