summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2018-04-19 13:34:03 +0000
committerHaojian Wu <hokein@google.com>2018-04-19 13:34:03 +0000
commitf8a92c1fff9b0b07774dd245b5f5a7dc9233320c (patch)
tree8d59d59bbd4c4d579da6d8ff29c3a25dd1f95882 /clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
parent5d61c8b225ec6ab599e0f1ae1cfa702ad7a515f0 (diff)
downloadbcm5719-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.cpp3
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 =
OpenPOWER on IntegriCloud