This is an archive of the discontinued LLVM Phabricator instance.

[Verifier] Extend address taken check for unknown intrinsics
ClosedPublic

Authored by nikic on Jul 15 2021, 1:31 PM.

Details

Summary

Intrinsics can only be called directly, taking their address is not legal. This is currently only enforced for intrinsics that have an ID, rather than all intrinsics. Adjust the check to cover all intrinsics.

This came up in D106013.

Diff Detail

Event Timeline

nikic created this revision.Jul 15 2021, 1:31 PM
nikic requested review of this revision.Jul 15 2021, 1:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 15 2021, 1:31 PM
aeubanks accepted this revision.Jul 15 2021, 1:39 PM
This revision is now accepted and ready to land.Jul 15 2021, 1:39 PM
This revision was landed with ongoing or failed builds.Jul 15 2021, 2:16 PM
This revision was automatically updated to reflect the committed changes.