HomePhabricator

ASTContext - silence static analyzer getAs<> null dereference warnings. NFCI.

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

Description

ASTContext - silence static analyzer getAs<> null dereference warnings. NFCI.

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

We can also remove a number of explicit asserts and reply on the internal asserts in castAs<>

llvm-svn: 373667

Details

Committed
RKSimonOct 3 2019, 2:47 PM
Parents
rG288079aafdbd: [DAGCombiner] add operation legality checks before creating shift ops (PR43542)
Branches
Unknown
Tags
Unknown