This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Cleanup off by one indexes in CallBase::dataOperandHasImpliedAttr()
ClosedPublic

Authored by aeubanks on Sep 7 2021, 1:23 PM.

Details

Summary

Verified that previously nothing was calling dataOperandHasImpliedAttr()
with AttributeList::ReturnIndex even though we had a code path for it.

Diff Detail

Event Timeline

aeubanks created this revision.Sep 7 2021, 1:23 PM
aeubanks requested review of this revision.Sep 7 2021, 1:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2021, 1:23 PM
rnk accepted this revision.Sep 7 2021, 2:49 PM

lgtm

llvm/include/llvm/IR/InstrTypes.h
1655

Looks like I wrote this in rGfb502d2f5e20e. :)

This revision is now accepted and ready to land.Sep 7 2021, 2:49 PM
This revision was landed with ongoing or failed builds.Sep 7 2021, 2:52 PM
This revision was automatically updated to reflect the committed changes.