1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[MCA] Fix for uninitialised member in constructor. NFC

This commit is contained in:
Andrea Di Biagio 2021-03-24 11:20:15 +00:00
parent 8136e5e7e1
commit 2d533d6c56
2 changed files with 5 additions and 2 deletions

View File

@ -45,7 +45,9 @@ class WriteRef {
static const unsigned INVALID_IID;
public:
WriteRef() : IID(INVALID_IID), WriteBackCycle(), WriteResID(), Write() {}
WriteRef()
: IID(INVALID_IID), WriteBackCycle(), WriteResID(), RegisterID(),
Write() {}
WriteRef(unsigned SourceIndex, WriteState *WS);
unsigned getSourceIndex() const { return IID; }

View File

@ -25,7 +25,8 @@ namespace mca {
const unsigned WriteRef::INVALID_IID = std::numeric_limits<unsigned>::max();
WriteRef::WriteRef(unsigned SourceIndex, WriteState *WS)
: IID(SourceIndex), WriteBackCycle(), WriteResID(), Write(WS) {}
: IID(SourceIndex), WriteBackCycle(), WriteResID(), RegisterID(),
Write(WS) {}
void WriteRef::commit() {
assert(Write && Write->isExecuted() && "Cannot commit before write back!");