Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 605ff66

Browse files
committed
[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
1 parent 3f213e7 commit 605ff66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ void AddressSanitizer::instrumentMop(Instruction *I) {
639639
Type *OrigTy = cast<PointerType>(OrigPtrTy)->getElementType();
640640

641641
assert(OrigTy->isSized());
642-
uint32_t TypeSize = TD->getTypeAllocSizeInBits(OrigTy);
642+
uint32_t TypeSize = TD->getTypeStoreSizeInBits(OrigTy);
643643

644644
if (TypeSize != 8 && TypeSize != 16 &&
645645
TypeSize != 32 && TypeSize != 64 && TypeSize != 128) {

test/Instrumentation/AddressSanitizer/basic.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@ entry:
9696
}
9797

9898
; CHECK: LongDoubleTest
99-
; CHECK: __asan_report_store16
99+
; CHECK-NOT: __asan_report_store16
100100
; CHECK: ret void

0 commit comments

Comments
 (0)