[Attributor] [NFC] Use canonical variable name

Differential Revision: https://reviews.llvm.org/D117241
This commit is contained in:
Bryce Wilson 2022-01-13 23:06:00 -08:00
parent d914486a9a
commit 28b6e2cb3d
No known key found for this signature in database
GPG Key ID: F4AEE17C36AB5D15
1 changed files with 2 additions and 2 deletions

View File

@ -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;