This is an archive of the discontinued LLVM Phabricator instance.

[ObjC Availability] Add missing const to getVersion function of ObjCAvailabilityCheckExpr class
ClosedPublic

Authored by lcs on Oct 19 2021, 8:22 PM.

Details

Summary

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.

Diff Detail

Event Timeline

lcs requested review of this revision.Oct 19 2021, 8:22 PM
lcs created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2021, 8:22 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
manmanren accepted this revision.Dec 2 2021, 2:23 PM
This revision is now accepted and ready to land.Dec 2 2021, 2:23 PM
This revision was automatically updated to reflect the committed changes.