This is an archive of the discontinued LLVM Phabricator instance.

Fix assertion failure in TransformOpaqueValueExpr
ClosedPublic

Authored by rcraik on Jul 28 2015, 3:29 PM.

Details

Summary

OpaqueValueExprs may not have a source expression (as in the case when they are created due to a default argument error). This can cause an assertion failure in TransformOpaqueValueExpr during template instantiation.

This patch fixes the assertion failure.

Diff Detail

Event Timeline

rcraik updated this revision to Diff 30862.Jul 28 2015, 3:29 PM
rcraik retitled this revision from to Fix assertion failure in TransformOpaqueValueExpr.
rcraik updated this object.
rcraik added reviewers: rsmith, hfinkel.
rcraik added subscribers: cfe-commits, fraggamuffin.
rsmith accepted this revision.Aug 31 2015, 3:08 PM
rsmith edited edge metadata.

Sorry for the delay, LGTM.

This revision is now accepted and ready to land.Aug 31 2015, 3:08 PM