diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp index 2cf725e04c79..0e56ccad65f0 100644 --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -6008,8 +6008,8 @@ struct AAHeapToStackFunction final : public AAHeapToStack { Optional getSize(Attributor &A, const AbstractAttribute &AA, AllocationInfo &AI) { auto Mapper = [&](const Value *V) -> const Value* { - bool Dead = false; - if (Optional SimpleV = A.getAssumedConstant(*V, AA, Dead)) + bool UsedAssumedInformation = false; + if (Optional SimpleV = A.getAssumedConstant(*V, AA, UsedAssumedInformation)) if (*SimpleV) return *SimpleV; return V;