HomePhabricator

OverloadCandidate::getNumParams - silence static analyzer…

Authored by RKSimon on Oct 3 2019, 2:27 PM.

Description

OverloadCandidate::getNumParams - silence static analyzer getAs<FunctionProtoType> null dereference warning. NFCI.

The static analyzer is warning about a potential null dereference, but we should be able to use castAs<FunctionProtoType> directly and if not assert will fire for us.

Also replaces an auto to make the type more obvious.

llvm-svn: 373665

Details