Skip to content

Commit fc32a5c

Browse files
committed
[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
1 parent 9832e1a commit fc32a5c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/Transforms/IPO/AttributorAttributes.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,19 +1149,19 @@ struct AAPointerInfoFloating : public AAPointerInfoImpl {
11491149
return true;
11501150
};
11511151

1152+
/// Helper struct, will support ranges eventually.
1153+
struct OffsetInfo {
1154+
int64_t Offset = AA::PointerInfo::OffsetAndSize::Unknown;
1155+
1156+
bool operator==(const OffsetInfo &OI) const { return Offset == OI.Offset; }
1157+
};
1158+
11521159
/// See AbstractAttribute::updateImpl(...).
11531160
ChangeStatus updateImpl(Attributor &A) override {
11541161
using namespace AA::PointerInfo;
11551162
State S = getState();
11561163
ChangeStatus Changed = ChangeStatus::UNCHANGED;
11571164
Value &AssociatedValue = getAssociatedValue();
1158-
struct OffsetInfo {
1159-
int64_t Offset = OffsetAndSize::Unknown;
1160-
1161-
bool operator==(const OffsetInfo &OI) const {
1162-
return Offset == OI.Offset;
1163-
}
1164-
};
11651165

11661166
const DataLayout &DL = A.getDataLayout();
11671167
DenseMap<Value *, OffsetInfo> OffsetInfoMap;

0 commit comments

Comments
 (0)