diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-19 13:52:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-19 13:52:24 +0100 |
commit | 5ea8854d3cac2d31b86838f09bdc628ba7b6a4de (patch) | |
tree | 8267725f83d0aa303fc5f483c3f85f97263e220c /compilerplugins | |
parent | a34a251ca4e4feeb31a96a88e3ac0add3cc22866 (diff) |
-Werror,-Wunused-variable
Change-Id: I1bcfe0dabd61a2157bc4a48ea54413882ecaaabc
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/emptyif.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/compilerplugins/clang/emptyif.cxx b/compilerplugins/clang/emptyif.cxx index d9348e660378..6eac86b6bcc7 100644 --- a/compilerplugins/clang/emptyif.cxx +++ b/compilerplugins/clang/emptyif.cxx @@ -30,13 +30,7 @@ public: { } - virtual void run() override - { - StringRef fn(compiler.getSourceManager() - .getFileEntryForID(compiler.getSourceManager().getMainFileID()) - ->getName()); - TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); - } + virtual void run() override { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); } bool VisitIfStmt(IfStmt const*); |