diff options
| author | Artem Belevich <tra@google.com> | 2016-06-15 23:04:42 +0000 |
|---|---|---|
| committer | Artem Belevich <tra@google.com> | 2016-06-15 23:04:42 +0000 |
| commit | 0ccbe69d180632205d081017a1a396c2dba55129 (patch) | |
| tree | 19d0f12869e0bfad7eab6f49776957d3da68c197 /clang-tools-extra/clang-rename/USRLocFinder.cpp | |
| parent | 76a41d3a25ebde7ad7c25c02f54f1d2ec8db4c98 (diff) | |
| download | bcm5719-llvm-0ccbe69d180632205d081017a1a396c2dba55129.tar.gz bcm5719-llvm-0ccbe69d180632205d081017a1a396c2dba55129.zip | |
[clang-tools] mark TokenName as unused
Otherwise it produces compiler warning if asserts are disabled.
llvm-svn: 272852
Diffstat (limited to 'clang-tools-extra/clang-rename/USRLocFinder.cpp')
| -rw-r--r-- | clang-tools-extra/clang-rename/USRLocFinder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-rename/USRLocFinder.cpp b/clang-tools-extra/clang-rename/USRLocFinder.cpp index fdd3fbcbf8a..878c4babd28 100644 --- a/clang-tools-extra/clang-rename/USRLocFinder.cpp +++ b/clang-tools-extra/clang-rename/USRLocFinder.cpp @@ -92,7 +92,7 @@ public: // Handles "~Foo" from "Foo::~Foo". SourceLocation Location = DestructorDecl->getLocation(); const ASTContext &Context = DestructorDecl->getASTContext(); - StringRef TokenName = Lexer::getSourceText( + StringRef LLVM_ATTRIBUTE_UNUSED TokenName = Lexer::getSourceText( CharSourceRange::getTokenRange(Location), Context.getSourceManager(), Context.getLangOpts()); // 1 is the length of the "~" string that is not to be touched by the |

