This happens if we pass our own validator options. It's nothing we can
control, SPIRV-Tools just passes NULL instead of "input".
Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23700>
return;
std::ostringstream message;
- message << "(file=" << src
+ message << "(file=" << (src ? src : "input")
<< ",line=" << pos.line
<< ",column=" << pos.column
<< ",index=" << pos.index