From c3619a5f42775287e8bec6f45c9e236fa80bdc2e Mon Sep 17 00:00:00 2001 From: Frodo Baggins Date: Thu, 19 Sep 2024 17:09:30 -0700 Subject: [PATCH] fix operand copy --- src/instructions/extension.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/instructions/extension.cpp b/src/instructions/extension.cpp index 4eff1a7..501b515 100644 --- a/src/instructions/extension.cpp +++ b/src/instructions/extension.cpp @@ -4,6 +4,7 @@ * 3-Clause BSD License */ +#include #include #include @@ -84,7 +85,7 @@ DEFINE_TRINARY(OpFMix, GLSLstd450FMix) Id Module::OpDebugPrintf(Id fmt, std::span fmt_args) { std::vector operands; operands.push_back(fmt); - std::copy(fmt_args.begin(), fmt_args.end(), operands.end()); + std::copy(fmt_args.begin(), fmt_args.end(), std::back_inserter(operands)); return OpExtInst(TypeVoid(), GetNonSemanticDebugPrintf(), NonSemanticDebugPrintfDebugPrintf, operands); }