| Index: src/IceInst.cpp
|
| diff --git a/src/IceInst.cpp b/src/IceInst.cpp
|
| index 1442c82b211b8f35cbdad1896e7dd2c537045145..49e9f06a8d063c84ea7a68f1f158010d3f7190ac 100644
|
| --- a/src/IceInst.cpp
|
| +++ b/src/IceInst.cpp
|
| @@ -75,7 +75,10 @@ const struct InstIcmpAttributes_ {
|
|
|
| Inst::Inst(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest)
|
| : Kind(Kind), Number(Func->newInstNumber()), Dest(Dest), MaxSrcs(MaxSrcs),
|
| - Srcs(Func->allocateArrayOf<Operand *>(MaxSrcs)), LiveRangesEnded(0) {}
|
| + Srcs(Func->allocateArrayOf<Operand *>(MaxSrcs)), LiveRangesEnded(0) {
|
| + if (Dest)
|
| + Dest->setDefiningInst(this);
|
| +}
|
|
|
| IceString Inst::getInstName() const {
|
| if (!BuildDefs::dump())
|
|
|