This is an archive of the discontinued LLVM Phabricator instance.

Fix crash when rewriting call to match placeholder
Needs ReviewPublic

Authored by amilburn on Jun 8 2016, 3:44 AM.

Details

Reviewers
rsmith
Summary

If an argument is a placeholder, rewriteBuiltinFunctionDecl should skip it when trying to rewrite address spaces.

This situation can happen because not all placeholders are rejected by ActOnCallExpr. The supplied test passes it an UnresolvedLookupExpr with overload type.

Fixes PR25961.

Diff Detail

Event Timeline

amilburn updated this revision to Diff 60012.Jun 8 2016, 3:44 AM
amilburn retitled this revision from to Fix crash when rewriting call to match placeholder.
amilburn updated this object.
amilburn added a reviewer: rsmith.
amilburn added a subscriber: cfe-commits.

This has already been fixed in r276352. I closed PR25961.