mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-10 04:20:06 +00:00
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:
parent
b5af825841
commit
7ea2f9c39f
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user