This is an archive of the discontinued LLVM Phabricator instance.

Linker: Create a function declaration when moving a non-prevailing alias of function type.
ClosedPublic

Authored by pcc on Aug 7 2017, 7:02 PM.

Details

Summary

We were previously creating a global variable of function type,
which is invalid IR. This issue was exposed by r304690, in which we
started asserting that global variables were of a valid type.

Fixes PR33462.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Aug 7 2017, 7:02 PM
This revision was automatically updated to reflect the committed changes.