[all-commits] [llvm/llvm-project] 814c65: ExecutionDomainFix - fix static analyzer out of ra...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Mar 12 11:53:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 814c65dedce949b8216ef819698c06c6f8f40de0
      https://github.com/llvm/llvm-project/commit/814c65dedce949b8216ef819698c06c6f8f40de0
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-03-12 (Thu, 12 Mar 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/ExecutionDomainFix.h

  Log Message:
  -----------
  ExecutionDomainFix - fix static analyzer out of range shift warnings.

Repeat the assertion that we already have in hasDomain for addDomain and setSingleDomain.


  Commit: 336530be07256728e2f4e7ae3d332f2e8939dbad
      https://github.com/llvm/llvm-project/commit/336530be07256728e2f4e7ae3d332f2e8939dbad
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-03-12 (Thu, 12 Mar 2020)

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

  Log Message:
  -----------
  CGOpenMPRuntime::emitDeclareTargetVarDefinition - fix static analyzer null dereference warning. NFCI.

All paths test for or dereference the VD pointer, so just assert that its not null.


  Commit: adeb8c54285e754f7c34690b583a0bd9af19de78
      https://github.com/llvm/llvm-project/commit/adeb8c54285e754f7c34690b583a0bd9af19de78
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-03-12 (Thu, 12 Mar 2020)

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

  Log Message:
  -----------
  Replace getAs with castAs to fix null dereference static analyzer warning.

Use castAs as we know the cast should succeed (and castAs will assert if it doesn't) and we're dereferencing it directly in the BuildRCBlockVarRecordLayout call.


  Commit: 1ef0d66343d64ca89d02083fd1f5b1323703bf65
      https://github.com/llvm/llvm-project/commit/1ef0d66343d64ca89d02083fd1f5b1323703bf65
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-03-12 (Thu, 12 Mar 2020)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp

  Log Message:
  -----------
  Fix unused variable warning. NFCI.


Compare: https://github.com/llvm/llvm-project/compare/c52f839e723e...1ef0d66343d6


More information about the All-commits mailing list