diff options
author | Kostya Serebryany <kcc@google.com> | 2013-02-15 12:46:06 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-02-15 12:46:06 +0000 |
commit | 74ecd214e267c9b24d824a6403d2f89aff1a7697 (patch) | |
tree | 32d382f723382fb11f2abfa717eeb13338d7a155 /lib/Transforms/Instrumentation | |
parent | 74b3c8da4800c7e8ba8f019879db29738ecc5f74 (diff) | |
download | external_llvm-74ecd214e267c9b24d824a6403d2f89aff1a7697.zip external_llvm-74ecd214e267c9b24d824a6403d2f89aff1a7697.tar.gz external_llvm-74ecd214e267c9b24d824a6403d2f89aff1a7697.tar.bz2 |
[asan] support long double on 64-bit. See https://code.google.com/p/address-sanitizer/issues/detail?id=151
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation')
-rw-r--r-- | lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/lib/Transforms/Instrumentation/AddressSanitizer.cpp index b97e342..5769e94 100644 --- a/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/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->getTypeStoreSizeInBits(OrigTy); + uint32_t TypeSize = TD->getTypeAllocSizeInBits(OrigTy); if (TypeSize != 8 && TypeSize != 16 && TypeSize != 32 && TypeSize != 64 && TypeSize != 128) { |