reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/Instrumentation/AddressSanitizer.cpp
 3277       IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false),
 3277       IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false),
 3281   Value *PartialSize = IRB.CreateAnd(OldSize, AllocaRzMask);
 3284   Value *Misalign = IRB.CreateSub(AllocaRzSize, PartialSize);
 3287   Value *Cond = IRB.CreateICmpNE(Misalign, AllocaRzSize);
 3288   Value *PartialPadding = IRB.CreateSelect(Cond, Misalign, Zero);
 3293   Value *AdditionalChunkSize = IRB.CreateAdd(
 3296   Value *NewSize = IRB.CreateAdd(OldSize, AdditionalChunkSize);
 3299   AllocaInst *NewAlloca = IRB.CreateAlloca(IRB.getInt8Ty(), NewSize);
 3299   AllocaInst *NewAlloca = IRB.CreateAlloca(IRB.getInt8Ty(), NewSize);
 3303   Value *NewAddress = IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy),
 3303   Value *NewAddress = IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy),
 3307   IRB.CreateCall(AsanAllocaPoisonFunc, {NewAddress, OldSize});
 3311   IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout);
 3311   IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout);
 3313   Value *NewAddressPtr = IRB.CreateIntToPtr(NewAddress, AI->getType());