Author: Johannes Doerfert Date: 2021-08-11T09:15:37-07:00 New Revision: 6789c4564a4b33049cb1335d9b8078057af2dc11
URL: https://github.com/llvm/llvm-project/commit/6789c4564a4b33049cb1335d9b8078057af2dc11 DIFF: https://github.com/llvm/llvm-project/commit/6789c4564a4b33049cb1335d9b8078057af2dc11.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 (cherry picked from commit fc32a5c87d9d5aef2c0b27715153fdd45cebd3f3) 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 e86619672107..3529923a9082 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; _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits