[lld] r325387 - Remove `else` after `break`.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 12:53:53 PST 2018
Author: ruiu
Date: Fri Feb 16 12:53:53 2018
New Revision: 325387
URL: http://llvm.org/viewvc/llvm-project?rev=325387&view=rev
Log:
Remove `else` after `break`.
Modified:
lld/trunk/wasm/InputFiles.cpp
Modified: lld/trunk/wasm/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputFiles.cpp?rev=325387&r1=325386&r2=325387&view=diff
==============================================================================
--- lld/trunk/wasm/InputFiles.cpp (original)
+++ lld/trunk/wasm/InputFiles.cpp Fri Feb 16 12:53:53 2018
@@ -254,10 +254,9 @@ void ObjFile::initializeSymbols() {
if (!isExcludedByComdat(Function)) {
S = createDefinedFunction(WasmSym, Function);
break;
- } else {
- Function->Live = false;
- LLVM_FALLTHROUGH; // Exclude function, and add the symbol as undefined
}
+ Function->Live = false;
+ LLVM_FALLTHROUGH; // Exclude function, and add the symbol as undefined
}
case WasmSymbol::SymbolType::FUNCTION_IMPORT:
S = createUndefined(WasmSym, Symbol::Kind::UndefinedFunctionKind,
@@ -268,10 +267,9 @@ void ObjFile::initializeSymbols() {
if (!isExcludedByComdat(Segment)) {
S = createDefinedGlobal(WasmSym, Segment, getGlobalValue(WasmSym));
break;
- } else {
- Segment->Live = false;
- LLVM_FALLTHROUGH; // Exclude global, and add the symbol as undefined
}
+ Segment->Live = false;
+ LLVM_FALLTHROUGH; // Exclude global, and add the symbol as undefined
}
case WasmSymbol::SymbolType::GLOBAL_IMPORT:
S = createUndefined(WasmSym, Symbol::Kind::UndefinedGlobalKind);
More information about the llvm-commits
mailing list