This is an archive of the discontinued LLVM Phabricator instance.

Inliner should not add callgraph edges for intrinsic calls (PR22857)
ClosedPublic

Authored by spatel on Mar 10 2015, 2:36 PM.

Details

Summary

The CallGraphNode function "addCalledFunction()" asserts that edges are not to intrinsics.

This patch makes sure that the Inliner does not add such an edge to the callgraph.

Fix for clang crash by assertion: https://llvm.org/bugs/show_bug.cgi?id=22857

Diff Detail

Repository
rL LLVM

Event Timeline

spatel updated this revision to Diff 21638.Mar 10 2015, 2:36 PM
spatel retitled this revision from to Inliner should not add callgraph edges for intrinsic calls (PR22857).
spatel updated this object.
spatel edited the test plan for this revision. (Show Details)
spatel added reviewers: hfinkel, bkramer, chandlerc.
spatel added a subscriber: Unknown Object (MLST).
chandlerc accepted this revision.Mar 10 2015, 5:33 PM
chandlerc edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Mar 10 2015, 5:33 PM
This revision was automatically updated to reflect the committed changes.

Thanks, Chandler - committed at r231927.