Fallthrough to reduce code a bit. NFC.

llvm-svn: 300673
This commit is contained in:
Rui Ueyama 2017-04-19 11:31:45 +00:00
parent 94d5dba8ae
commit 4627873807
1 changed files with 2 additions and 3 deletions

View File

@ -568,11 +568,10 @@ static std::vector<StringRef> getLines(MemoryBufferRef MB) {
static bool getCompressDebugSections(opt::InputArgList &Args) {
if (auto *Arg = Args.getLastArg(OPT_compress_debug_sections)) {
StringRef S = Arg->getValue();
if (S == "none")
return false;
if (S == "zlib")
return zlib::isAvailable();
error("unknown --compress-debug-sections value: " + S);
if (S != "none")
error("unknown --compress-debug-sections value: " + S);
}
return false;
}