[all-commits] [llvm/llvm-project] f1c9e7: [ObjC Availability] Add missing const to getVersio...

Chaoshuai Lü via All-commits all-commits at lists.llvm.org
Mon Jan 24 14:53:37 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1c9e7bdc921cec0cc3f61c19c4ac4a7f1bd8525
      https://github.com/llvm/llvm-project/commit/f1c9e7bdc921cec0cc3f61c19c4ac4a7f1bd8525
  Author: Chaoshuai Lu <lcs at fb.com>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    M clang/include/clang/AST/ExprObjC.h

  Log Message:
  -----------
  [ObjC Availability] Add missing const to getVersion function of ObjCAvailabilityCheckExpr class

Add missing const to `getVersion` function of `ObjCAvailabilityCheckExpr` class.

This feels like a bug on the original change D22171. We cannot really call this function from a const object pointer because the function is not marked as const.

This diff adds the missing const specifier to fix the issue.

Reviewed By: manmanren

Differential Revision: https://reviews.llvm.org/D112119




More information about the All-commits mailing list