This is an archive of the discontinued LLVM Phabricator instance.

[llvm-c] Make LLVMConstGEP/LLVMConstInBoundsGEP opaque pointer compatible
ClosedPublic

Authored by nikic on Dec 15 2021, 12:12 AM.

Details

Summary

Weirdly, the opaque pointer compatible variants LLVMConstGEP2 and LLVMConstInBoundsGEP2 were already declared in the header, but not actually implemented. This adds the missing implementations and deprecated the incompatible functions.

Diff Detail

Event Timeline

nikic created this revision.Dec 15 2021, 12:12 AM
nikic requested review of this revision.Dec 15 2021, 12:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2021, 12:12 AM
aeubanks accepted this revision.Dec 15 2021, 9:22 AM
aeubanks added a subscriber: aeubanks.

it'd be nice if we had tests for these that at least just called them, but none of the other existing LLVMConst* have tests :(

This revision is now accepted and ready to land.Dec 15 2021, 9:22 AM
This revision was landed with ongoing or failed builds.Dec 16 2021, 12:39 AM
This revision was automatically updated to reflect the committed changes.