commit | fe49395f6b1677f982588f2f3f18237aea800b9a | [log] [tgz] |
---|---|---|
author | Amy Huang <akhuang@google.com> | Mon Oct 07 19:41:53 2019 +0000 |
committer | Amy Huang <akhuang@google.com> | Mon Oct 07 19:41:53 2019 +0000 |
tree | 13c5c9c2f3eb2182d7ae545e41f9fb3f67e30f1c | |
parent | f8c3d1a886ce2dffb92f17863b576a5f4b08f6f9 [diff] |
Fix for expanding __pragmas in macro arguments Summary: 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. Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68114 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373950 91177308-0d34-0410-b5e6-96231b3b80d8