[all-commits] [llvm/llvm-project] f4df7f: Remove redundant implicit cast creation.

Richard Smith via All-commits all-commits at lists.llvm.org
Fri Jan 10 16:12:22 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f4df7f4701d80ce6a2f5674db50f87fbd2dad82f
      https://github.com/llvm/llvm-project/commit/f4df7f4701d80ce6a2f5674db50f87fbd2dad82f
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-01-10 (Fri, 10 Jan 2020)

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

  Log Message:
  -----------
  Remove redundant implicit cast creation.

FindCompositePointerType has already cast the operands to the composite
type for us in the case where it succeeds.


  Commit: fbf915f01d46e005146f01553a5d7c6619d19597
      https://github.com/llvm/llvm-project/commit/fbf915f01d46e005146f01553a5d7c6619d19597
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-01-10 (Fri, 10 Jan 2020)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/SemaObjC/arc.m
    M clang/test/SemaObjCXX/arc-ptr-comparison.mm

  Log Message:
  -----------
  Add a FIXME and corresponding test coverage for some suspicious behavior
forming composite ObjC pointer types in comparisons.


  Commit: 9a6f4d451ca7aa06b94a407015fbadb456bc09ef
      https://github.com/llvm/llvm-project/commit/9a6f4d451ca7aa06b94a407015fbadb456bc09ef
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-01-10 (Fri, 10 Jan 2020)

  Changed paths:
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/SemaObjCXX/composite-objc-pointertype.mm
    A clang/test/SemaOpenCLCXX/address-space-cond.cl

  Log Message:
  -----------
  Clean up and slightly generalize implementation of composite pointer
type computation, in preparation for P0388R4, which adds another few
cases here.

We now properly handle forming multi-level composite pointer types
involving nested Objective-C pointer types (as is consistent with
including them as part of the notion of 'similar types' on which this
rule is based). We no longer lose non-CVR qualifiers on nested pointer
types.


Compare: https://github.com/llvm/llvm-project/compare/ceb801612a67...9a6f4d451ca7


More information about the All-commits mailing list