mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[MCA] Fix for uninitialised member in constructor. NFC
This commit is contained in:
parent
8136e5e7e1
commit
2d533d6c56
@ -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
Block a user