avoid using make_unique for c++11 compatibility
This commit is contained in:
parent
b6df89b470
commit
61d244145d
@ -358,7 +358,7 @@ public:
|
|||||||
{ return reducedPrecisionReturn ? DecorationRelaxedPrecision : NoPrecision; }
|
{ return reducedPrecisionReturn ? DecorationRelaxedPrecision : NoPrecision; }
|
||||||
|
|
||||||
void setDebugLineInfo(Id fileName, int line, int column) {
|
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->addIdOperand(fileName);
|
||||||
lineInstruction->addImmediateOperand(line);
|
lineInstruction->addImmediateOperand(line);
|
||||||
lineInstruction->addImmediateOperand(column);
|
lineInstruction->addImmediateOperand(column);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user