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
This commit is contained in:
John Kessenich 2013-10-07 22:02:36 +00:00
parent b5af825841
commit 7ea2f9c39f

View File

@ -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);
}
//