[all-commits] [llvm/llvm-project] dd32ad: [Clang][Lex][NFC] Assert getExternalSource() in up...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Fri May 16 06:27:19 PDT 2025


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

  Changed paths:
    M clang/lib/Lex/Preprocessor.cpp

  Log Message:
  -----------
  [Clang][Lex][NFC] Assert getExternalSource() in updateOutOfDateIdentifier (#140137)

Static analysis flagged the unconditional access of getExternalSource().
We don't initialize ExternalSource during construction but via
setExternalSource(). If this is not set it will violate the invariant
covered by the assert.



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