[all-commits] [llvm/llvm-project] 7e7106: DetectDeadLanes.cpp - remove unused headers. NFCI.

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Nov 25 03:39:14 PST 2020


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

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

  Log Message:
  -----------
  DetectDeadLanes.cpp - remove unused headers. NFCI.


  Commit: 6d56823116820962984cdd535cbed1191be696c9
      https://github.com/llvm/llvm-project/commit/6d56823116820962984cdd535cbed1191be696c9
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp

  Log Message:
  -----------
  SemaExpr.cpp - use castAs<> instead of getAs<> as we dereference the pointer directly. NFCI.

castAs<> will assert the correct cast type instead of just returning null, which we then try to dereference immediately.


  Commit: eb7ea5aa1ac6030b7bc94c5f2fb42de675cd392f
      https://github.com/llvm/llvm-project/commit/eb7ea5aa1ac6030b7bc94c5f2fb42de675cd392f
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

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

  Log Message:
  -----------
  CGCall.cpp - use castAs<> instead of getAs<> as we dereference the pointer directly. NFCI.

castAs<> will assert the correct cast type instead of just returning null, which we then try to dereference immediately in the setUsedBits call.


  Commit: 9d996c01aad5371ccf3790ce937b1cc85d1b07ab
      https://github.com/llvm/llvm-project/commit/9d996c01aad5371ccf3790ce937b1cc85d1b07ab
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

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

  Log Message:
  -----------
  TargetInfo.cpp - use castAs<> instead of getAs<> as we dereference the pointer directly. NFCI.

castAs<> will assert the correct cast type instead of just returning null, which we then try to dereference immediately.


  Commit: 88bb2656708050bdb012c9046b3e30f3975f9949
      https://github.com/llvm/llvm-project/commit/88bb2656708050bdb012c9046b3e30f3975f9949
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp

  Log Message:
  -----------
  SemaExpr.cpp - use castAs<> instead of getAs<> as we dereference the pointer directly. NFCI.

castAs<> will assert the correct cast type instead of just returning null, which we then try to dereference immediately.


Compare: https://github.com/llvm/llvm-project/compare/603d40da9d53...88bb26567080


More information about the All-commits mailing list