avoid using make_unique for c++11 compatibility

This commit is contained in:
Qingyuan Zheng 2022-05-31 10:40:25 -07:00
parent b6df89b470
commit 61d244145d

View File

@ -358,7 +358,7 @@ public:
{ return reducedPrecisionReturn ? DecorationRelaxedPrecision : NoPrecision; }
void setDebugLineInfo(Id fileName, int line, int column) {
lineInstruction = std::make_unique<Instruction>(OpLine);
lineInstruction = std::unique_ptr<Instruction>{new Instruction(OpLine)};
lineInstruction->addIdOperand(fileName);
lineInstruction->addImmediateOperand(line);
lineInstruction->addImmediateOperand(column);