mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
[asan] fix one more bug related to long double
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153189 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d9e85ef08b
commit
208a4ff2b5
@ -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