diff options
| author | Haojian Wu <hokein@google.com> | 2018-04-19 13:34:03 +0000 |
|---|---|---|
| committer | Haojian Wu <hokein@google.com> | 2018-04-19 13:34:03 +0000 |
| commit | f8a92c1fff9b0b07774dd245b5f5a7dc9233320c (patch) | |
| tree | 8d59d59bbd4c4d579da6d8ff29c3a25dd1f95882 /clang-tools-extra/clang-tidy/ClangTidyOptions.cpp | |
| parent | 5d61c8b225ec6ab599e0f1ae1cfa702ad7a515f0 (diff) | |
| download | bcm5719-llvm-f8a92c1fff9b0b07774dd245b5f5a7dc9233320c.tar.gz bcm5719-llvm-f8a92c1fff9b0b07774dd245b5f5a7dc9233320c.zip | |
[clang-tidy] Fix unused-variable warning.
llvm-svn: 330327
Diffstat (limited to 'clang-tools-extra/clang-tidy/ClangTidyOptions.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/ClangTidyOptions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp b/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp index 63b2b5eb650..ab06c5ed1c7 100644 --- a/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp +++ b/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp @@ -230,7 +230,8 @@ FileOptionsProvider::getRawOptions(StringRef FileName) { assert(FS && "FS must be set."); llvm::SmallString<128> AbsoluteFilePath(FileName); - if (std::error_code ec = FS->makeAbsolute(AbsoluteFilePath)) + + if (FS->makeAbsolute(AbsoluteFilePath)) return {}; std::vector<OptionsSource> RawOptions = |

