diff --git a/SPIRV/spvIR.h b/SPIRV/spvIR.h index ddccd26b..57e7d378 100644 --- a/SPIRV/spvIR.h +++ b/SPIRV/spvIR.h @@ -358,7 +358,7 @@ public: { return reducedPrecisionReturn ? DecorationRelaxedPrecision : NoPrecision; } void setDebugLineInfo(Id fileName, int line, int column) { - lineInstruction = std::make_unique(OpLine); + lineInstruction = std::unique_ptr{new Instruction(OpLine)}; lineInstruction->addIdOperand(fileName); lineInstruction->addImmediateOperand(line); lineInstruction->addImmediateOperand(column);