diff options
| author | Heejin Ahn <aheejin@gmail.com> | 2019-02-04 19:13:46 +0000 |
|---|---|---|
| committer | Heejin Ahn <aheejin@gmail.com> | 2019-02-04 19:13:46 +0000 |
| commit | a1cc4ea7bb1a527917f4be87475e5931d034a4ca (patch) | |
| tree | f51ce53d088c8f18531fb40d96318c8acd9ba362 /lld/wasm/MarkLive.cpp | |
| parent | 18c56a07623e496480854f4927bcf1ba5213d177 (diff) | |
| download | bcm5719-llvm-a1cc4ea7bb1a527917f4be87475e5931d034a4ca.tar.gz bcm5719-llvm-a1cc4ea7bb1a527917f4be87475e5931d034a4ca.zip | |
[WebAssembly] clang-tidy (NFC)
Summary:
This patch fixes clang-tidy warnings on wasm-only files.
The list of checks used is:
`-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,readability-identifier-naming,modernize-*`
(LLVM's default .clang-tidy list is the same except it does not have
`modernize-*`.)
The list of fixes are:
- Variable names start with an uppercase letter
- Function names start with a lowercase letter
- Use `auto` when you use casts so the type is evident
Reviewers: sbc100
Subscribers: dschuff, jgravelle-google, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D57499
llvm-svn: 353076
Diffstat (limited to 'lld/wasm/MarkLive.cpp')
| -rw-r--r-- | lld/wasm/MarkLive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/wasm/MarkLive.cpp b/lld/wasm/MarkLive.cpp index da70e8e047c..5d4b379e297 100644 --- a/lld/wasm/MarkLive.cpp +++ b/lld/wasm/MarkLive.cpp @@ -84,7 +84,7 @@ void lld::wasm::markLive() { // equal to null pointer, only reachable via direct call). if (Reloc.Type == R_WASM_TABLE_INDEX_SLEB || Reloc.Type == R_WASM_TABLE_INDEX_I32) { - FunctionSymbol *FuncSym = cast<FunctionSymbol>(Sym); + auto *FuncSym = cast<FunctionSymbol>(Sym); if (FuncSym->hasTableIndex() && FuncSym->getTableIndex() == 0) continue; } |

