HLSL: Error if funcion with return type doesn't return a value.
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
// For the version, it uses the latest git tag followed by the number of commits.
|
||||
// For the date, it uses the current date (when then script is run).
|
||||
|
||||
#define GLSLANG_REVISION "Overload400-PrecQual.1460"
|
||||
#define GLSLANG_REVISION "Overload400-PrecQual.1461"
|
||||
#define GLSLANG_DATE "02-Sep-2016"
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user