[all-commits] [llvm/llvm-project] 0808be: [NFC] Remove unneeded nullptr checks after cast<> ...

Mike Rice via All-commits all-commits at lists.llvm.org
Thu Dec 7 16:20:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0808be47b8fbf0307d0b6f2eb45ba9bfe1b3ae65
      https://github.com/llvm/llvm-project/commit/0808be47b8fbf0307d0b6f2eb45ba9bfe1b3ae65
  Author: Mike Rice <michael.p.rice at intel.com>
  Date:   2023-12-07 (Thu, 07 Dec 2023)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp

  Log Message:
  -----------
  [NFC] Remove unneeded nullptr checks after cast<> (#74674)

Since VD is assigned from a cast<VarDecl> it cannot be a nullptr or it
would have asserted. Remove the subsequent checks to clear up any
misunderstanding.




More information about the All-commits mailing list