Merge pull request #2849 from jeremy-lunarg/hayes-fix-issue-2848

Fix seg fault
This commit is contained in:
Greg Fischer 2022-01-03 16:39:45 -07:00 committed by GitHub
commit 950c6ddc11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 78 additions and 3 deletions

View file

@ -1321,7 +1321,7 @@ TIntermTyped* TParseContext::handleFunctionCall(const TSourceLoc& loc, TFunction
// Find it in the symbol table.
//
const TFunction* fnCandidate;
bool builtIn;
bool builtIn {false};
fnCandidate = findFunction(loc, *function, builtIn);
if (fnCandidate) {
// This is a declared function that might map to