This is an archive of the discontinued LLVM Phabricator instance.

[flang] Convert RUNTIME_CHECK to better error for user errors in transformational.cpp
ClosedPublic

Authored by klausler on Mar 18 2022, 1:46 PM.

Details

Summary

In flang/runtime/transformational.cpp, there are many RUNTIME_CHECK assertions
for errors that should have been caught in semantics, but there are alno others
that signify program errors that in principle cannot be detected until
execution. Convert this second group into readable fatal error messages.
Also clean up some missing braces and incorrect printf formats found
along the way.

Diff Detail

Event Timeline

klausler created this revision.Mar 18 2022, 1:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 18 2022, 1:46 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Mar 18 2022, 1:46 PM
PeteSteinfeld accepted this revision.Mar 18 2022, 3:27 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Mar 18 2022, 3:27 PM