Fix an MSVC failure from r223802

llvm-svn: 223820
This commit is contained in:
Duncan P. N. Exon Smith 2014-12-09 20:01:40 +00:00
parent e29df230cd
commit 0580a42096
1 changed files with 6 additions and 0 deletions

View File

@ -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)); }