This is an archive of the discontinued LLVM Phabricator instance.

Verifier: fix bug treating debug info issue as non-debug info issue
ClosedPublic

Authored by yaxunl on Jan 22 2018, 11:57 AM.

Details

Summary

Normally when llvm-as sees only debug info errors in LLVM assembly, it simply drops the debug info and outputs a valid LLVM bitcode and returns 0.

There is a bug in LLVM verifier which incorrectly treats a debug info error as non-debug info error, which causes llvm-as returns 1 even though llvm-as can drop the invalid debug info and outputs a valid LLVM bitcode.

This patch fixes that.

Diff Detail

Repository
rL LLVM

Event Timeline

yaxunl created this revision.Jan 22 2018, 11:57 AM
aprantl accepted this revision.Jan 22 2018, 2:42 PM

Since this can be recovered from by stripping debug info, this change is correct.

Thanks!

This revision is now accepted and ready to land.Jan 22 2018, 2:42 PM
This revision was automatically updated to reflect the committed changes.