Page MenuHomePhabricator

[clangd] Remove reundant use of getSpellingLoc()

Authored by nridge on Sun, Mar 19, 1:04 AM.



getFileLoc() is guaranteed to return a file loc, and getSpellingLoc()
on a file loc is a no-op.

Diff Detail

Event Timeline

nridge created this revision.Sun, Mar 19, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptSun, Mar 19, 1:04 AM
Herald added a subscriber: arphaman. · View Herald Transcript
nridge requested review of this revision.Sun, Mar 19, 1:04 AM

No functional changes intended, this redundancy is just something I noticed while I was learning about these functions during my review of D144074 and looking at other usages of them in clnagd.

hokein accepted this revision.Mon, Mar 20, 1:36 AM


This revision is now accepted and ready to land.Mon, Mar 20, 1:36 AM
This revision was automatically updated to reflect the committed changes.