mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-30 04:37:20 +00:00
Fix an MSVC failure from r223802
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223820 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
772744826c
commit
b8755d9ddd
@ -78,6 +78,9 @@ public:
|
||||
return !MD || !MetadataTracking::isReplaceable(*MD);
|
||||
}
|
||||
|
||||
bool operator==(const TrackingMDRef &X) const { return MD == X.MD; }
|
||||
bool operator!=(const TrackingMDRef &X) const { return MD != X.MD; }
|
||||
|
||||
private:
|
||||
void track() {
|
||||
if (MD)
|
||||
@ -124,6 +127,9 @@ public:
|
||||
T *operator->() const { return get(); }
|
||||
T &operator*() const { return *get(); }
|
||||
|
||||
bool operator==(const TypedTrackingMDRef &X) const { return Ref == X.Ref; }
|
||||
bool operator!=(const TypedTrackingMDRef &X) const { return Ref != X.Ref; }
|
||||
|
||||
void reset() { Ref.reset(); }
|
||||
void reset(T *MD) { Ref.reset(static_cast<Metadata *>(MD)); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user