diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-06-18 21:33:38 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-06-18 21:33:38 +0000 |
commit | cdf8b8828547ac6d5cd646c6a7c9a1985f4f15a6 (patch) | |
tree | eb8c8a896d62af3d6e6bb7e099aa77292ef1aadf /clang/lib/Lex/PPDirectives.cpp | |
parent | 1470e2077a4818267d78edb27a33e0e82d85009a (diff) | |
download | bcm5719-llvm-cdf8b8828547ac6d5cd646c6a7c9a1985f4f15a6.tar.gz bcm5719-llvm-cdf8b8828547ac6d5cd646c6a7c9a1985f4f15a6.zip |
Make sure the assembler-with-cpp hack for "#" works with multiple "#"s in
succession. Fixes PR16363.
llvm-svn: 184240
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 3e3312a9261..c25e317b42d 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -1920,6 +1920,8 @@ void Preprocessor::HandleDefineDirective(Token &DefineTok, // confused. if (getLangOpts().AsmPreprocessor && Tok.isNot(tok::eod)) { LastTok.setKind(tok::unknown); + MI->AddTokenToBody(LastTok); + continue; } else { Diag(Tok, diag::err_pp_stringize_not_parameter); ReleaseMacroInfo(MI); |