Remove `else` after `break`.
authorRui Ueyama <ruiu@google.com>
Fri, 16 Feb 2018 20:53:53 +0000 (20:53 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 16 Feb 2018 20:53:53 +0000 (20:53 +0000)
llvm-svn: 325387

lld/wasm/InputFiles.cpp

index a09e182..9c47151 100644 (file)
@@ -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);