Fix missing fields initializers warnings

Produced by Clang 10's -Wmissing-field-initializers. Bug: b/152777669 Change-Id: Ib6cda930945b1b46e5530f2aef7bbc9ee07ab9df Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/51549 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Commit-Queue: Nicolas Capens <nicolascapens@google.com>
parent 937395c1
......@@ -190,7 +190,7 @@ void DebugInfo::syncScope(Backtrace const &backtrace)
LOG(" STACK(%d): Jumped backwards %d -> %d. di: %p -> %p", int(i),
oldLocation.line, newLocation.line, scope.di, di);
emitPending(scope, builder);
scope = { newLocation, di };
scope = { newLocation, di, {}, {} };
shrink(i + 1);
break;
}
......@@ -222,7 +222,7 @@ void DebugInfo::syncScope(Backtrace const &backtrace)
DINode::FlagPrototyped, // flags
DISubprogram::SPFlagDefinition // subprogram flags
);
diScope.push_back({ location, func });
diScope.push_back({ location, func, {}, {} });
LOG("+ STACK(%d): di: %p, location: %s:%d", int(i), di,
location.function.file.c_str(), int(location.line));
}
......@@ -509,7 +509,7 @@ DebugInfo::LineTokens const *DebugInfo::getOrParseFileTokens(const char *path)
{
if(match.str(1) == "return")
{
(*tokens)[lineCount] = Token{ Token::Return };
(*tokens)[lineCount] = Token{ Token::Return, "" };
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment