This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix crash from empty -DMACRO= (bug #64837)
ClosedPublic

Authored by klausler on Aug 21 2023, 1:28 PM.

Details

Summary

Some vector indexing code in the preprocessor fails with empty
tokens or token sequences in predefined macros.

Fixes https://github.com/llvm/llvm-project/issues/64837.

Diff Detail

Event Timeline

klausler created this revision.Aug 21 2023, 1:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 1:28 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 21 2023, 1:28 PM
klausler updated this revision to Diff 552740.Aug 23 2023, 8:46 AM

Add regression test.

PeteSteinfeld accepted this revision.Aug 23 2023, 9:17 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Aug 23 2023, 9:17 AM
This revision was automatically updated to reflect the committed changes.