Remove cache for macro arg stringization
authorReid Kleckner <rnk@google.com>
Tue, 30 Jul 2019 17:58:22 +0000 (17:58 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 30 Jul 2019 17:58:22 +0000 (17:58 +0000)
commitc0e275df3d5df8b8f400322d12d011f11eba39b9
tree96ef1cb0bfb0eef180fa8bd18f561a7826c40b0e
parent7cb03c0dc4f5672c43bc47d8c017268384321479
Remove cache for macro arg stringization

Summary:
The cache recorded the wrong expansion location for all but the first
stringization. It seems uncommon to stringize the same macro argument
multiple times, so this cache doesn't seem that important.

Fixes PR39942

Reviewers: vsk, rsmith

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D65428

llvm-svn: 367337
clang/include/clang/Lex/MacroArgs.h
clang/lib/Lex/MacroArgs.cpp
clang/lib/Lex/TokenLexer.cpp
clang/test/CoverageMapping/macro-stringize-twice.cpp [new file with mode: 0644]
clang/unittests/Lex/LexerTest.cpp