diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-20 21:51:11 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-20 21:51:11 +0000 |
commit | 4d6ccb5f68cd7c6418a209f1fa4dbade569e4493 (patch) | |
tree | 9a48fa9f7f51fd635f6807ed7444fcdcad0e9bda /lib/AsmParser | |
parent | 0041d4d447c26825e566ba38a4fe301471fda1eb (diff) | |
download | external_llvm-4d6ccb5f68cd7c6418a209f1fa4dbade569e4493.zip external_llvm-4d6ccb5f68cd7c6418a209f1fa4dbade569e4493.tar.gz external_llvm-4d6ccb5f68cd7c6418a209f1fa4dbade569e4493.tar.bz2 |
More dead code removal (using -Wunreachable-code)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r-- | lib/AsmParser/LLParser.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index e056f69..efd48e1 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -1043,13 +1043,11 @@ bool LLParser::ParseOptionalCallingConv(CallingConv::ID &CC) { case lltok::kw_cc: { unsigned ArbitraryCC; Lex.Lex(); - if (ParseUInt32(ArbitraryCC)) { + if (ParseUInt32(ArbitraryCC)) return true; - } else - CC = static_cast<CallingConv::ID>(ArbitraryCC); - return false; + CC = static_cast<CallingConv::ID>(ArbitraryCC); + return false; } - break; } Lex.Lex(); |