[all-commits] [llvm/llvm-project] ab2d29: BPFISelDAGToDAG.cpp - don't dereference a dyn_cast...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Jun 6 05:26:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ab2d29555293f6bde7096e1f684a1957ee9f9c92
      https://github.com/llvm/llvm-project/commit/ab2d29555293f6bde7096e1f684a1957ee9f9c92
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp

  Log Message:
  -----------
  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.




More information about the All-commits mailing list