HomePhabricator

[Attributor][FIX] Don't crash on internalizing linkonce_odr hidden functions

Authored by jdoerfert on Aug 18 2020, 1:32 PM.

Description

[Attributor][FIX] Don't crash on internalizing linkonce_odr hidden functions

The CloneFunctionInto has implicit requirements with regards to the
linkage and visibility of the function. We now update these after we did
the CloneFunctionInto on the copy with the same linkage and visibility
as the original.

Details

Committed
jdoerfertSep 7 2020, 9:38 PM
Parents
rG53e4ef7fc259: [Attributor][NFC] Cleanup internalize test case
Branches
Unknown
Tags
Unknown