[llvm] 28b6e2c - [Attributor] [NFC] Use canonical variable name

Bryce Wilson via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 13 23:07:06 PST 2022


Author: Bryce Wilson
Date: 2022-01-13T23:06:00-08:00
New Revision: 28b6e2cb3df64bffcacbac24e0f91caa7c5ebdae

URL: https://github.com/llvm/llvm-project/commit/28b6e2cb3df64bffcacbac24e0f91caa7c5ebdae
DIFF: https://github.com/llvm/llvm-project/commit/28b6e2cb3df64bffcacbac24e0f91caa7c5ebdae.diff

LOG: [Attributor] [NFC] Use canonical variable name

Differential Revision: https://reviews.llvm.org/D117241

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/AttributorAttributes.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 2cf725e04c795..0e56ccad65f02 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<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;


        


More information about the llvm-commits mailing list