mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
[asan] fix one more bug related to long double
llvm-svn: 153189
This commit is contained in:
parent
4df2738e5f
commit
19681e071c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user