summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-05-25 01:35:18 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-05-25 01:35:18 +0000
commit461f2d820ffb628ebdf6ef4a4474a43f8ff914e5 (patch)
tree14a14c81fef9161adf339ffe49823cc21d693bec /lib/CodeGen/CGExpr.cpp
parent45e1f0e3e7a2030e2e95863cf2bcceb7eb2476ff (diff)
downloadclang-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