[all-commits] [llvm/llvm-project] 654387: [Clang][NFC] assert IFaceT in SemaObjC::HandleExpr...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Fri May 2 07:28:13 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65438787c7729d84964a25c2db5f7996dd1343cc
      https://github.com/llvm/llvm-project/commit/65438787c7729d84964a25c2db5f7996dd1343cc
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2025-05-02 (Fri, 02 May 2025)

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

  Log Message:
  -----------
  [Clang][NFC] assert IFaceT in SemaObjC::HandleExprPropertyRefExpr (#138026)

Static analysis flagged that we use IFaceT in HandleExprPropertyRefExpr
without checking even though getInterfaceType() can return nullptr. The
comments make it clear the assumption is that we will always have an
interface, so we will document this via an assert.

Fixes: https://github.com/llvm/llvm-project/issues/134954



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