[asan] revert r175266 as it breaks code with packed structures. supporting long doubl...
authorKostya Serebryany <kcc@google.com>
Mon, 18 Feb 2013 13:47:02 +0000 (13:47 +0000)
committerKostya Serebryany <kcc@google.com>
Mon, 18 Feb 2013 13:47:02 +0000 (13:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175442 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/basic.ll

index 5769e942a59f7c69b33ba982783d9e7fdaf5c3c6..b97e3425bccaae4d7dc3582851630939eaf1f463 100644 (file)
@@ -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) {
index 746caf704bd4860a6239032acefa6fb3ac1d2606..c1b27a59023406dd87754fd3e7909e1fe1cf3a90 100644 (file)
@@ -96,5 +96,5 @@ entry:
 }
 
 ; CHECK: LongDoubleTest
-; CHECK: __asan_report_store16
+; CHECK-NOT: __asan_report_store16
 ; CHECK: ret void