From 4fa68edd68197a8c77779942b5d973f89c621752 Mon Sep 17 00:00:00 2001 From: John Kessenich Date: Tue, 12 May 2020 02:48:00 -0600 Subject: [PATCH] Address #2211: Improve the copy constructor of TVarLivePair. --- glslang/MachineIndependent/iomapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glslang/MachineIndependent/iomapper.h b/glslang/MachineIndependent/iomapper.h index e91a1509..a6f2480c 100644 --- a/glslang/MachineIndependent/iomapper.h +++ b/glslang/MachineIndependent/iomapper.h @@ -244,7 +244,7 @@ struct TVarLivePair : std::pair { second = _Right.second; return (*this); } - TVarLivePair(const TVarLivePair& src) { *this = src; } + TVarLivePair(const TVarLivePair& src) : pair(src) { } }; typedef std::vector TVarLiveVector;