[all-commits] [llvm/llvm-project] 4d167f: [Sema] TransformTypeOfExprType / TransformTypeOfTy...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Jun 27 05:10:24 PDT 2024


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

  Changed paths:
    M clang/lib/Sema/TreeTransform.h

  Log Message:
  -----------
  [Sema] TransformTypeOfExprType / TransformTypeOfType - don't dereference getAs<> results

Use castAs<> to assert the cast is valid to help avoid null dereferences

Fixes static analyser warnings


  Commit: 0f5fa3558eb36823c16ba81a4c6e6e23a5f9df24
      https://github.com/llvm/llvm-project/commit/0f5fa3558eb36823c16ba81a4c6e6e23a5f9df24
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-27 (Thu, 27 Jun 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] computeKnownBitsForPMADDWD - the final addition of the signextended multiplies is not guaranteed to be NSW

https://rust.godbolt.org/z/3f1bevnoT
https://alive2.llvm.org/ce/z/cjixBY

Noticed by @alexfh


Compare: https://github.com/llvm/llvm-project/compare/7c866cc69ffb...0f5fa3558eb3

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list