HomePhabricator

Add null-pointer checks when accessing a TypeSystem's SymbolFile

Authored by augusto2112 on May 11 2021, 9:15 AM.

Description

Add null-pointer checks when accessing a TypeSystem's SymbolFile

A type system is not guaranteed to have a symbol file. This patch adds null-pointer checks so we don't crash when trying to access a type system's symbol file.

Reviewed By: aprantl, teemperor

Differential Revision: https://reviews.llvm.org/D101539