From 7ea2f9c39fadfb010dc0c4fc810692eabad24b43 Mon Sep 17 00:00:00 2001 From: John Kessenich Date: Mon, 7 Oct 2013 22:02:36 +0000 Subject: [PATCH] Fix g++ complaint about taking address of temporary. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23410 e7fa87d3-cd2b-0410-9028-fcbf551c1848 --- glslang/MachineIndependent/ParseHelper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glslang/MachineIndependent/ParseHelper.cpp b/glslang/MachineIndependent/ParseHelper.cpp index b28d90f8..e184af70 100644 --- a/glslang/MachineIndependent/ParseHelper.cpp +++ b/glslang/MachineIndependent/ParseHelper.cpp @@ -869,7 +869,9 @@ TFunction* TParseContext::handleConstructorCall(TSourceLoc loc, TPublicType& pub type.shallowCopy(errorType); } - return new TFunction(&TString(""), type, op); + TString empty(""); + + return new TFunction(&empty, type, op); } //