This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Remove reundant use of getSpellingLoc()
ClosedPublic

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

Details

Summary

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.Mar 19 2023, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2023, 1:04 AM
Herald added a subscriber: arphaman. · View Herald Transcript
nridge requested review of this revision.Mar 19 2023, 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.Mar 20 2023, 1:36 AM

Thanks!

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