mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[ASAN] NFC: Remove redundant variable
`StackAlignment` has only one use: `StackAlignment = std::max(StackAlignment, AI.getAlignment());` So it is redundant. Reviewed By: vitalybuka, MTC Differential Revision: https://reviews.llvm.org/D106741
This commit is contained in:
parent
c563d2cbcd
commit
2a88f80da4
@ -932,7 +932,6 @@ struct FunctionStackPoisoner : public InstVisitor<FunctionStackPoisoner> {
|
|||||||
SmallVector<AllocaInst *, 16> AllocaVec;
|
SmallVector<AllocaInst *, 16> AllocaVec;
|
||||||
SmallVector<AllocaInst *, 16> StaticAllocasToMoveUp;
|
SmallVector<AllocaInst *, 16> StaticAllocasToMoveUp;
|
||||||
SmallVector<Instruction *, 8> RetVec;
|
SmallVector<Instruction *, 8> RetVec;
|
||||||
unsigned StackAlignment;
|
|
||||||
|
|
||||||
FunctionCallee AsanStackMallocFunc[kMaxAsanStackMallocSizeClass + 1],
|
FunctionCallee AsanStackMallocFunc[kMaxAsanStackMallocSizeClass + 1],
|
||||||
AsanStackFreeFunc[kMaxAsanStackMallocSizeClass + 1];
|
AsanStackFreeFunc[kMaxAsanStackMallocSizeClass + 1];
|
||||||
@ -964,7 +963,6 @@ struct FunctionStackPoisoner : public InstVisitor<FunctionStackPoisoner> {
|
|||||||
: F(F), ASan(ASan), DIB(*F.getParent(), /*AllowUnresolved*/ false),
|
: F(F), ASan(ASan), DIB(*F.getParent(), /*AllowUnresolved*/ false),
|
||||||
C(ASan.C), IntptrTy(ASan.IntptrTy),
|
C(ASan.C), IntptrTy(ASan.IntptrTy),
|
||||||
IntptrPtrTy(PointerType::get(IntptrTy, 0)), Mapping(ASan.Mapping),
|
IntptrPtrTy(PointerType::get(IntptrTy, 0)), Mapping(ASan.Mapping),
|
||||||
StackAlignment(1 << Mapping.Scale),
|
|
||||||
PoisonStack(ClStack &&
|
PoisonStack(ClStack &&
|
||||||
!Triple(F.getParent()->getTargetTriple()).isAMDGPU()) {}
|
!Triple(F.getParent()->getTargetTriple()).isAMDGPU()) {}
|
||||||
|
|
||||||
@ -1088,7 +1086,6 @@ struct FunctionStackPoisoner : public InstVisitor<FunctionStackPoisoner> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
StackAlignment = std::max(StackAlignment, AI.getAlignment());
|
|
||||||
if (!AI.isStaticAlloca())
|
if (!AI.isStaticAlloca())
|
||||||
DynamicAllocaVec.push_back(&AI);
|
DynamicAllocaVec.push_back(&AI);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user