This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Fix assertion failure at vector comparison
AbandonedPublic

Authored by kevgs on Apr 11 2016, 4:41 AM.

Details

Reviewers
rsmith
Summary

Diff Detail

Event Timeline

kevgs updated this revision to Diff 53218.Apr 11 2016, 4:41 AM
kevgs retitled this revision from to [Sema] Fix assertion failure at vector comparison.
kevgs updated this object.
kevgs set the repository for this revision to rL LLVM.
kevgs updated this object.Apr 11 2016, 5:17 AM
rnk added a subscriber: rnk.Apr 14 2016, 9:35 AM

I think Sema::CheckVectorOperands isn't supposed to return a scalar type. Fixing that with http://reviews.llvm.org/D19123 also solves this problem. Richard, WDYT?

rsmith requested changes to this revision.Apr 14 2016, 12:56 PM
rsmith edited edge metadata.

I agree. In the example, the type of y == z should be vec, not int -- we should "promote" to the vector type.

This revision now requires changes to proceed.Apr 14 2016, 12:56 PM
kevgs abandoned this revision.Apr 15 2016, 3:45 AM