[llvm] fc32a5c - [Attributor][NFC] Try to make the windows build bots happy

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 10 23:11:50 PDT 2021


Author: Johannes Doerfert
Date: 2021-08-11T01:11:37-05:00
New Revision: fc32a5c87d9d5aef2c0b27715153fdd45cebd3f3

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

LOG: [Attributor][NFC] Try to make the windows build bots happy

Failed for some reason, potentially because of the inner type
declaration in combination with the `using`. This might help.

Failure:
https://lab.llvm.org/buildbot/#/builders/127/builds/15432

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 e866196721075..3529923a9082b 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -1149,19 +1149,19 @@ struct AAPointerInfoFloating : public AAPointerInfoImpl {
     return true;
   };
 
+  /// Helper struct, will support ranges eventually.
+  struct OffsetInfo {
+    int64_t Offset = AA::PointerInfo::OffsetAndSize::Unknown;
+
+    bool operator==(const OffsetInfo &OI) const { return Offset == OI.Offset; }
+  };
+
   /// See AbstractAttribute::updateImpl(...).
   ChangeStatus updateImpl(Attributor &A) override {
     using namespace AA::PointerInfo;
     State S = getState();
     ChangeStatus Changed = ChangeStatus::UNCHANGED;
     Value &AssociatedValue = getAssociatedValue();
-    struct OffsetInfo {
-      int64_t Offset = OffsetAndSize::Unknown;
-
-      bool operator==(const OffsetInfo &OI) const {
-        return Offset == OI.Offset;
-      }
-    };
 
     const DataLayout &DL = A.getDataLayout();
     DenseMap<Value *, OffsetInfo> OffsetInfoMap;


        


More information about the llvm-commits mailing list