aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCDisassembler
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-01-10 20:47:20 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-01-10 20:47:20 +0000
commite4ad58272970ecd850d233862f40a72d15649639 (patch)
treeaa0b093e777f54cbe42e80ec74e02bf023cc4b0a /lib/MC/MCDisassembler
parentfd553c2cb54ee01d56f5d80d70a5d52220286fcc (diff)
Fix some leftover control reaches end of non-void function warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCDisassembler')
-rw-r--r--lib/MC/MCDisassembler/EDDisassembler.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/MC/MCDisassembler/EDDisassembler.cpp b/lib/MC/MCDisassembler/EDDisassembler.cpp
index 8698335733..46869dac76 100644
--- a/lib/MC/MCDisassembler/EDDisassembler.cpp
+++ b/lib/MC/MCDisassembler/EDDisassembler.cpp
@@ -79,19 +79,18 @@ static int getLLVMSyntaxVariant(Triple::ArchType arch,
case EDDisassembler::kEDAssemblySyntaxX86ATT:
if (arch == Triple::x86 || arch == Triple::x86_64)
return 0;
- else
- return -1;
+ break;
case EDDisassembler::kEDAssemblySyntaxX86Intel:
if (arch == Triple::x86 || arch == Triple::x86_64)
return 1;
- else
- return -1;
+ break;
case EDDisassembler::kEDAssemblySyntaxARMUAL:
if (arch == Triple::arm || arch == Triple::thumb)
return 0;
- else
- return -1;
+ break;
}
+
+ return -1;
}
EDDisassembler *EDDisassembler::getDisassembler(Triple::ArchType arch,