This is an archive of the discontinued LLVM Phabricator instance.

Fix assertion failure in LLParser::ConvertValIDToValue
ClosedPublic

Authored by kschimpf on Sep 1 2015, 1:12 PM.

Details

Reviewers
kcc
Summary

Fixes bug 24645. Problem appears to be that the type may be undefined
when ConvertValIDToValue is called.

Diff Detail

Event Timeline

kschimpf updated this revision to Diff 33722.Sep 1 2015, 1:12 PM
kschimpf retitled this revision from to Fix assertion failure in LLParser::ConvertValIDToValue.
kschimpf updated this object.
kschimpf added a reviewer: kcc.
kschimpf added a subscriber: llvm-commits.
kcc edited edge metadata.Sep 1 2015, 1:18 PM

Fix is ok, but please add a test.

I've never seen this code before today, but the fix is obvious so I hope my LGTM should be enough.

kschimpf updated this revision to Diff 33738.Sep 1 2015, 2:54 PM
kschimpf edited edge metadata.

Add test case.

Added test case to demonstrate bug https://llvm.org/bugs/show_bug.cgi?id=24645 is fixed.

Since kcc and myself are not familiar with the code, does anyone have any objections to this fix?

kcc accepted this revision.Sep 2 2015, 8:44 AM
kcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 2 2015, 8:44 AM