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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue