[PATCH] D68114: Fix for expanding __pragmas in macro arguments
Amy Huang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 26 17:43:25 PDT 2019
akhuang created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Avoid parsing __pragma into an annotation token when macro arguments are pre-expanded.
This is what clang currently does when parsing _Pragmas.
Fixes https://bugs.llvm.org/show_bug.cgi?id=41128, where clang crashed
when trying to get the length of an annotation token.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D68114
Files:
clang/lib/Lex/Pragma.cpp
clang/test/Preprocessor/pragma_microsoft.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68114.222062.patch
Type: text/x-patch
Size: 3300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190927/8985ff72/attachment.bin>
More information about the cfe-commits
mailing list