This is an archive of the discontinued LLVM Phabricator instance.

[SemaOverload] Fixed crash on code completion
ClosedPublic

Authored by ilya-biryukov on Mar 9 2018, 6:18 AM.

Details

Summary

The relevant failing assertion message is:
../tools/clang/lib/Sema/SemaInit.cpp:8411: PerformCopyInitialization(): Assertion `InitE && "No initialization expression?"' failed.

See the added test case for a repro.

Diff Detail

Repository
rL LLVM

Event Timeline

ilya-biryukov created this revision.Mar 9 2018, 6:18 AM
sammccall accepted this revision.Mar 9 2018, 6:36 AM
sammccall added inline comments.
lib/Sema/SemaOverload.cpp
6251 ↗(On Diff #137738)

comment this case can be hit in code completion

This revision is now accepted and ready to land.Mar 9 2018, 6:36 AM
  • Added a comment
ilya-biryukov marked an inline comment as done.Mar 9 2018, 6:44 AM
This revision was automatically updated to reflect the committed changes.