Address #2211: Improve the copy constructor of TVarLivePair.

This commit is contained in:
John Kessenich 2020-05-12 02:48:00 -06:00
parent 55f9d97f3b
commit 4fa68edd68

View File

@ -244,7 +244,7 @@ struct TVarLivePair : std::pair<const TString, TVarEntryInfo> {
second = _Right.second; second = _Right.second;
return (*this); return (*this);
} }
TVarLivePair(const TVarLivePair& src) { *this = src; } TVarLivePair(const TVarLivePair& src) : pair(src) { }
}; };
typedef std::vector<TVarLivePair> TVarLiveVector; typedef std::vector<TVarLivePair> TVarLiveVector;