mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[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)
This commit is contained in:
parent
d2cc939747
commit
64a6596867
@ -1149,19 +1149,19 @@ struct AAPointerInfoFloating : public AAPointerInfoImpl {
|
|||||||
return true;
|
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(...).
|
/// See AbstractAttribute::updateImpl(...).
|
||||||
ChangeStatus updateImpl(Attributor &A) override {
|
ChangeStatus updateImpl(Attributor &A) override {
|
||||||
using namespace AA::PointerInfo;
|
using namespace AA::PointerInfo;
|
||||||
State S = getState();
|
State S = getState();
|
||||||
ChangeStatus Changed = ChangeStatus::UNCHANGED;
|
ChangeStatus Changed = ChangeStatus::UNCHANGED;
|
||||||
Value &AssociatedValue = getAssociatedValue();
|
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();
|
const DataLayout &DL = A.getDataLayout();
|
||||||
DenseMap<Value *, OffsetInfo> OffsetInfoMap;
|
DenseMap<Value *, OffsetInfo> OffsetInfoMap;
|
||||||
|
Loading…
Reference in New Issue
Block a user