This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix handling of space between # and name in preprocessor stringification
ClosedPublic

Authored by klausler on Jan 12 2022, 1:55 PM.

Details

Summary

When preprocessing "# ARG" in function-like macro expansion,
the preprocessor needs to pop the previously-pushed '#' token
from the end of the resulting token sequence after detecting the
argument name. The code to do this was just wrong in a couple of
ways.

Diff Detail

Event Timeline

klausler created this revision.Jan 12 2022, 1:55 PM
klausler requested review of this revision.Jan 12 2022, 1:55 PM
vdonaldson accepted this revision.Jan 12 2022, 3:09 PM
This revision is now accepted and ready to land.Jan 12 2022, 3:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2022, 4:02 PM