BPFISelDAGToDAG.cpp - don't dereference a dyn_cast<> result. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 6 Jun 2021 12:24:02 +0000 (13:24 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 6 Jun 2021 12:24:29 +0000 (13:24 +0100)
commitab2d29555293f6bde7096e1f684a1957ee9f9c92
treea354350a3278dec61a7901dd41f019db5baf8e64
parent139a36454f842c7936ba461279e862488e894637
BPFISelDAGToDAG.cpp - don't dereference a dyn_cast<> result. NFCI.

Use cast<> instead which will assert that the cast is correct and not just return null.

Fixes static analysis warnings.
llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp