This is an archive of the discontinued LLVM Phabricator instance.

ThinLTO: fix assertion and refactor check for hidden use from inline ASM in a helper function
ClosedPublic

Authored by mehdi_amini on May 5 2016, 6:38 PM.

Details

Summary

This test was crashing, and currently it breaks bootstrapping clang with debuginfo

Diff Detail

Event Timeline

mehdi_amini updated this revision to Diff 56377.May 5 2016, 6:38 PM
mehdi_amini retitled this revision from to ThinLTO: fix assertion and refactor check for hidden use from inline ASM in a helper function.
mehdi_amini updated this object.
mehdi_amini added a reviewer: tejohnson.
mehdi_amini added a subscriber: llvm-commits.

Sorry i didn't add the test: but you should figure out what the fix is about: a module with an internal function in LLVM.used but without any inline ASM in the module.

tejohnson accepted this revision.May 5 2016, 7:15 PM
tejohnson edited edge metadata.

LGTM with a test added and nit fixed.

lib/Transforms/Utils/FunctionImportUtils.cpp
230

Oh I see, hitting this assert I guess.

244

Extraneous new line added.

This revision is now accepted and ready to land.May 5 2016, 7:15 PM
mehdi_amini updated this revision to Diff 56385.May 6 2016, 1:30 AM
mehdi_amini edited edge metadata.

Add test and remove spurious new line

mehdi_amini marked an inline comment as done.May 6 2016, 1:30 AM
mehdi_amini added inline comments.
lib/Transforms/Utils/FunctionImportUtils.cpp
230

Yes!