From 61d244145ddfc783f44c24c6abf0fe2f5f28254c Mon Sep 17 00:00:00 2001 From: Qingyuan Zheng Date: Tue, 31 May 2022 10:40:25 -0700 Subject: [PATCH] avoid using make_unique for c++11 compatibility --- SPIRV/spvIR.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPIRV/spvIR.h b/SPIRV/spvIR.h index ddccd26..57e7d37 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); -- 2.7.4