Still generate switch statement when WARNING about missing statements is given. It was correct behave when this used to be an error, but not now that it is a warning.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29279 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
2b20dcb64d
commit
33a5423f76
2 changed files with 31 additions and 10 deletions
|
|
@ -5037,12 +5037,9 @@ TIntermNode* TParseContext::addSwitch(TSourceLoc loc, TIntermTyped* expression,
|
|||
if (switchSequence->size() == 0)
|
||||
return expression;
|
||||
|
||||
if (lastStatements == 0) {
|
||||
if (lastStatements == 0)
|
||||
warn(loc, "last case/default label not followed by statements", "switch", "");
|
||||
|
||||
return expression;
|
||||
}
|
||||
|
||||
TIntermAggregate* body = new TIntermAggregate(EOpSequence);
|
||||
body->getSequence() = *switchSequenceStack.back();
|
||||
body->setLoc(loc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue