This is an archive of the discontinued LLVM Phabricator instance.

Fix typo/oversight: GETTER to SETTER (NFC)
ClosedPublic

Authored by chill on Jun 20 2017, 9:17 AM.

Details

Reviewers
majnemer
chill
Summary

Use the CALLSITE_DELEGATE_SETTER macro in CallSiteBase::setCannotDuplicate.

Diff Detail

Event Timeline

chill created this revision.Jun 20 2017, 9:17 AM
chill added a comment.EditedJun 20 2017, 9:20 AM

FWIW, probably a single CALLSITE_DELEGATE macro could be used all over:

#define CALLSITE_DELEGATE(METHOD) \
 InstrTy *II = getInstruction(); \
 return isCall() \
   ? cast<CallInst>(II)->METHOD \
   : cast<InvokeInst>(II)->METHOD
chill accepted this revision.Jul 26 2017, 8:50 AM

Committed as obvious.

This revision is now accepted and ready to land.Jul 26 2017, 8:50 AM
chill closed this revision.Jul 26 2017, 8:51 AM