summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-02-18 13:47:02 +0000
committerKostya Serebryany <kcc@google.com>2013-02-18 13:47:02 +0000
commit7ca384bc1a9070c675d42b01790a6dbea84fcdbd (patch)
treee08948a8fab5356d2c718ad1a1e48db425d89cd9 /llvm/lib/Transforms
parent9ed9ade0ef42ab9f20a888df2c01addb057ceca0 (diff)
downloadbcm5719-llvm-7ca384bc1a9070c675d42b01790a6dbea84fcdbd.tar.gz
bcm5719-llvm-7ca384bc1a9070c675d42b01790a6dbea84fcdbd.zip
[asan] revert r175266 as it breaks code with packed structures. supporting long double will require a more general solution
llvm-svn: 175442
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 5769e942a59..b97e3425bcc 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -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) {
OpenPOWER on IntegriCloud