This is an archive of the discontinued LLVM Phabricator instance.

[FileCheck] Turn errors into assert in valueFromStringRepr()
ClosedPublic

Authored by thopre on Jul 4 2023, 4:09 AM.

Details

Summary

getWildcardRegex() guarantees that only valid hex numbers are matched by
FileCheck numeric expressions. This commit therefore only asserts the
lack of parsing failure in valueFromStringRepr().

Depends On D154430

Diff Detail

Event Timeline

thopre created this revision.Jul 4 2023, 4:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 4 2023, 4:09 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
thopre requested review of this revision.Jul 4 2023, 4:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 4 2023, 4:09 AM
thopre updated this revision to Diff 537098.Jul 4 2023, 7:47 AM

Simplify signature since it does not throw any error

arichardson accepted this revision.Jul 4 2023, 9:26 AM
This revision is now accepted and ready to land.Jul 4 2023, 9:26 AM
This revision was landed with ongoing or failed builds.Aug 7 2023, 1:28 PM
This revision was automatically updated to reflect the committed changes.