This is an archive of the discontinued LLVM Phabricator instance.

[FileCheck] Implement equality operators for ExpressionValue.
ClosedPublic

Authored by paulwalker-arm on Jun 3 2020, 7:21 AM.

Diff Detail

Event Timeline

paulwalker-arm created this revision.Jun 3 2020, 7:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2020, 7:21 AM

I've extracted this change from my other patch to break a dependency chain.

thopre added inline comments.Jun 3 2020, 8:27 AM
llvm/unittests/Support/FileCheckTest.cpp
487–488

Maybe also test numbers which would have the same representation when cast to unsigned, e.g.

UINT64_MAX and -1

Added tests to protect against unintentional casts and mismatched binary encodings.

paulwalker-arm marked an inline comment as done.Jun 3 2020, 9:31 AM
thopre accepted this revision.Jun 4 2020, 1:14 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 4 2020, 1:14 AM
jhenderson accepted this revision.Jun 4 2020, 1:38 AM

LGTM too.

This revision was automatically updated to reflect the committed changes.