forked from OSchip/llvm-project
[MCA] Fix for uninitialised member in constructor. NFC
This commit is contained in:
parent
c1ef642ad8
commit
97a00b7b20
|
@ -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; }
|
||||
|
|
|
@ -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!");
|
||||
|
|
Loading…
Reference in New Issue