[NFC][CLANG] Fix bug with dereference null return value in GetFunctionTypeForVTable()
This patch uses castAs instead of getAs which will assert if the type doesn't match in clang::CodeGen::CodeGenTypes::GetFunctionTypeForVTable(clang::GlobalDecl). Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D151957
Loading
Please sign in to comment