diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-05-25 01:35:18 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-05-25 01:35:18 +0000 |
| commit | 461f2d820ffb628ebdf6ef4a4474a43f8ff914e5 (patch) | |
| tree | 14a14c81fef9161adf339ffe49823cc21d693bec /lib/CodeGen/CGExpr.cpp | |
| parent | 45e1f0e3e7a2030e2e95863cf2bcceb7eb2476ff (diff) | |
| download | clang-461f2d820ffb628ebdf6ef4a4474a43f8ff914e5.tar.gz clang-461f2d820ffb628ebdf6ef4a4474a43f8ff914e5.tar.bz2 clang-461f2d820ffb628ebdf6ef4a4474a43f8ff914e5.tar.xz | |
[Preprocessor] Prevent expansion of y in x ## y when x is empty
When x is empty, x ## is suppressed, and when y gets expanded, the fact that it follows ## is not
available in the macro expansion result. The macro definition can be checked instead, the ## will
be available there regardless of what x expands to.
Fixes http://llvm.org/PR12767
Patch by Harald van Dijk!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
