This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Make NCOPIES= argument of REPEAT a signed integer, & check it
ClosedPublic

Authored by klausler on Jun 14 2022, 2:04 PM.

Details

Summary

NCOPIES= is currently a std::size_t in the API. If a negative value is
used, the memory allocation will fail. Change it to be a signed integer,
and crash with a message instead if it be negative.

Diff Detail

Event Timeline

klausler created this revision.Jun 14 2022, 2:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 2:04 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 14 2022, 2:04 PM
vdonaldson accepted this revision.Jun 15 2022, 11:20 AM
This revision is now accepted and ready to land.Jun 15 2022, 11:20 AM