so that it can work on gcc 4.6 happily, otherwise, I have the following issues:
backend/src/./ir/instruction.hpp:112:7: error: type ‘gbe::ir::Instruction’ is not a direct base of ‘gbe::ir::Instruction’
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
}
/*! Copy the private fields and give it the same parent */
INLINE Instruction(const Instruction &other) :
- Instruction(reinterpret_cast<const char*>(&other.opcode))
- {}
+ InstructionBase(reinterpret_cast<const char*>(&other.opcode)) {
+ parent = other.parent;
+ }
private:
/*! To be consistant with copy constructor */
INLINE Instruction &operator= (const Instruction &other) { return *this; }