[clang] 2dd35e9 - [clang][driver][wasm] Remove unneeded default labels
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 3 07:52:59 PST 2022
Author: Timm Bäder
Date: 2022-02-03T16:52:41+01:00
New Revision: 2dd35e98d3ffa1327df8261077958b47b2bdbb15
URL: https://github.com/llvm/llvm-project/commit/2dd35e98d3ffa1327df8261077958b47b2bdbb15
DIFF: https://github.com/llvm/llvm-project/commit/2dd35e98d3ffa1327df8261077958b47b2bdbb15.diff
LOG: [clang][driver][wasm] Remove unneeded default labels
Fix build fallout from b5787a0c6cc4da47b7d7b218e23f780076ad2f5f
Added:
Modified:
clang/lib/Driver/ToolChains/WebAssembly.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/WebAssembly.cpp b/clang/lib/Driver/ToolChains/WebAssembly.cpp
index 5f64792b45014..4fdfb7e1762e0 100644
--- a/clang/lib/Driver/ToolChains/WebAssembly.cpp
+++ b/clang/lib/Driver/ToolChains/WebAssembly.cpp
@@ -435,8 +435,6 @@ void WebAssembly::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
case ToolChain::CST_Libstdcxx:
addLibStdCXXIncludePaths(DriverArgs, CC1Args);
break;
- default:
- llvm_unreachable("Unknown stdlib type");
}
}
@@ -451,8 +449,6 @@ void WebAssembly::AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
case ToolChain::CST_Libstdcxx:
CmdArgs.push_back("-lstdc++");
break;
- default:
- llvm_unreachable("invalid stdlib name");
}
}
More information about the cfe-commits
mailing list