diff options
author | Kostya Serebryany <kcc@google.com> | 2012-03-21 15:28:50 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-03-21 15:28:50 +0000 |
commit | 84a7f2e8e933d4248092a1d4d40964429e5e7721 (patch) | |
tree | bdf212e92984cc3238e98ad2c3415960b9e16607 /llvm/lib | |
parent | b8a047261cd4c4a69e50d11982d47d530aa0cee2 (diff) | |
download | bcm5719-llvm-84a7f2e8e933d4248092a1d4d40964429e5e7721.tar.gz bcm5719-llvm-84a7f2e8e933d4248092a1d4d40964429e5e7721.zip |
[asan] fix one more bug related to long double
llvm-svn: 153189
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index a51bd7e41c8..b43b9e5face 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -454,7 +454,7 @@ bool AddressSanitizer::insertGlobalRedzones(Module &M) { GlobalVariable *G = GlobalsToChange[i]; PointerType *PtrTy = cast<PointerType>(G->getType()); Type *Ty = PtrTy->getElementType(); - uint64_t SizeInBytes = TD->getTypeStoreSizeInBits(Ty) / 8; + uint64_t SizeInBytes = TD->getTypeAllocSize(Ty); uint64_t RightRedzoneSize = RedzoneSize + (RedzoneSize - (SizeInBytes % RedzoneSize)); Type *RightRedZoneTy = ArrayType::get(IRB.getInt8Ty(), RightRedzoneSize); |