aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@redhat.com>2019-02-01 06:11:44 +0000
committerSerge Guelton <sguelton@redhat.com>2019-02-01 06:11:44 +0000
commit5ef88bdb68234b21b2ecda683dfe2f76513502d9 (patch)
tree910826a2e82df38f358287749e7674154bb0a78d /llvm/lib/Support/CommandLine.cpp
parent8a32f3b7a0f67bedbeb8df9e1bfdbb2aa846adaf (diff)
downloadllvm-5ef88bdb68234b21b2ecda683dfe2f76513502d9.zip
llvm-5ef88bdb68234b21b2ecda683dfe2f76513502d9.tar.gz
llvm-5ef88bdb68234b21b2ecda683dfe2f76513502d9.tar.bz2
Fix isInSystemMacro to handle pasted macros
Token pasted by the preprocessor (through ##) have a Spelling pointing to scratch buffer. As a result they are not recognized at system macro, even though the pasting happened in a system macro. Fix that by looking into the parent macro if the original lookup finds a scratch buffer. Differential Revision: https://reviews.llvm.org/D55782 This effectively fixes https://bugs.llvm.org/show_bug.cgi?id=35268, llvm-svn: 352838
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions