[all-commits] [llvm/llvm-project] 7b1586: Fix "pointer is null" static analyzer warning. NFCI.

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Jan 15 04:18:36 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b15865225103389150153d12904041fcc57fd0e
      https://github.com/llvm/llvm-project/commit/7b15865225103389150153d12904041fcc57fd0e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXLowerAlloca.cpp

  Log Message:
  -----------
  Fix "pointer is null" static analyzer warning. NFCI.

Use cast<> instead of dyn_cast<> since the pointer is always dereferenced and cast<> will perform the null assertion for us.


  Commit: 0b64400e0b3de18c99f77380e98da8e5e1a49832
      https://github.com/llvm/llvm-project/commit/0b64400e0b3de18c99f77380e98da8e5e1a49832
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M llvm/lib/CodeGen/RegisterClassInfo.cpp

  Log Message:
  -----------
  RegisterClassInfo::computePSetLimit - assert that we actually find a register.

Fixes "pointer is null" clang static analyzer warning.


  Commit: eb82226f33525c7332f8008c048b821f08d725fa
      https://github.com/llvm/llvm-project/commit/eb82226f33525c7332f8008c048b821f08d725fa
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h

  Log Message:
  -----------
  Fix Wdocumentation warning. NFC.


Compare: https://github.com/llvm/llvm-project/compare/7570d387c219...eb82226f3352


More information about the All-commits mailing list