HLSL: Error if funcion with return type doesn't return a value.
This commit is contained in:
parent
1a4b775cd5
commit
a305166ea4
15 changed files with 73 additions and 53 deletions
|
|
@ -1036,7 +1036,7 @@ TIntermAggregate* TParseContext::handleFunctionDefinition(const TSourceLoc& loc,
|
|||
error(loc, "can't find function", function.getName().c_str(), "");
|
||||
// Note: 'prevDec' could be 'function' if this is the first time we've seen function
|
||||
// as it would have just been put in the symbol table. Otherwise, we're looking up
|
||||
// an earlier occurance.
|
||||
// an earlier occurrence.
|
||||
|
||||
if (prevDec && prevDec->isDefined()) {
|
||||
// Then this function already has a body.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue