This is an archive of the discontinued LLVM Phabricator instance.

Emit diagnostic note when calling an invalid function declaration.
ClosedPublic

Authored by jyknight on Oct 4 2018, 5:25 PM.

Details

Summary

The comment said it was intentionally not emitting any diagnostic
because the declaration itself was already diagnosed. However,
everywhere else that wants to not emit a diagnostic without an extra
note emits note_invalid_subexpr_in_const_expr instead, which gets
suppressed later.

This was the only place which did not emit a diagnostic note.

Diff Detail

Repository
rC Clang

Event Timeline

jyknight created this revision.Oct 4 2018, 5:25 PM
rsmith accepted this revision.Oct 5 2018, 9:18 AM
This revision is now accepted and ready to land.Oct 5 2018, 9:18 AM
This revision was automatically updated to reflect the committed changes.