forked from OSchip/llvm-project
[Attributor] [NFC] Use canonical variable name
Differential Revision: https://reviews.llvm.org/D117241
This commit is contained in:
parent
d914486a9a
commit
28b6e2cb3d
|
@ -6008,8 +6008,8 @@ struct AAHeapToStackFunction final : public AAHeapToStack {
|
|||
Optional<APInt> getSize(Attributor &A, const AbstractAttribute &AA,
|
||||
AllocationInfo &AI) {
|
||||
auto Mapper = [&](const Value *V) -> const Value* {
|
||||
bool Dead = false;
|
||||
if (Optional<Constant *> SimpleV = A.getAssumedConstant(*V, AA, Dead))
|
||||
bool UsedAssumedInformation = false;
|
||||
if (Optional<Constant *> SimpleV = A.getAssumedConstant(*V, AA, UsedAssumedInformation))
|
||||
if (*SimpleV)
|
||||
return *SimpleV;
|
||||
return V;
|
||||
|
|
Loading…
Reference in New Issue