This is an archive of the discontinued LLVM Phabricator instance.

[Matrix] Replace some err kinds with err_builtin_invalid_arg_type. (NFC)
ClosedPublic

Authored by fhahn on Oct 26 2021, 6:39 AM.

Details

Summary

Replace some custom matrix diagnostic kinds with the more generic
err_builtin_invalid_arg_type introduced in D111985.

Diff Detail

Event Timeline

fhahn created this revision.Oct 26 2021, 6:39 AM
fhahn requested review of this revision.Oct 26 2021, 6:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2021, 6:39 AM

I'm fine with this change in general... but did this not manage to break any tests?

clang/lib/Sema/SemaChecking.cpp
16654

Can you make these be a "select" instead? It makes it really difficult to localize if we do this.

In general, I like the direction of this cleanup. Thanks!

I'm fine with this change in general... but did this not manage to break any tests?

Precommit CI says things are broken: https://buildkite.com/llvm-project/premerge-checks/builds/62247#63e5ea73-b0b3-4df4-898a-dd05d1f4bf81

fhahn updated this revision to Diff 382373.Oct 26 2021, 9:30 AM
fhahn marked an inline comment as done.

Reabsed after landing D111985. Also turned the custom message parts into a select as suggested.

In general, I like the direction of this cleanup. Thanks!

I'm fine with this change in general... but did this not manage to break any tests?

Precommit CI says things are broken: https://buildkite.com/llvm-project/premerge-checks/builds/62247#63e5ea73-b0b3-4df4-898a-dd05d1f4bf81

I think that is a build failure due the me not linking the dependency in Phab. Now that D111985 has landed it should be come back green.

clang/lib/Sema/SemaChecking.cpp
16654

done, thanks!

erichkeane added inline comments.Oct 26 2021, 10:06 AM
clang/lib/Sema/SemaChecking.cpp
16582

1 nit: On the 'select' lines, please put a /**/ comment next to the integer to explain what it is. If they were all closer to eachother, I'd suggest doing an enum for them, but the comment should be good enough.

fhahn updated this revision to Diff 382413.Oct 26 2021, 11:45 AM

Add comment to int selecting message as suggested.

fhahn marked an inline comment as done.Oct 26 2021, 11:45 AM
fhahn added inline comments.
clang/lib/Sema/SemaChecking.cpp
16582

done, thanks!

erichkeane accepted this revision.Oct 26 2021, 11:47 AM
This revision is now accepted and ready to land.Oct 26 2021, 11:47 AM
This revision was automatically updated to reflect the committed changes.
fhahn marked an inline comment as done.