summaryrefslogtreecommitdiff
path: root/lib/Target/ARM
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-01-19 08:25:19 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-01-19 08:25:19 +0000
commitbf329b3414bbc24efb6d44952a7cbf66c83bcca1 (patch)
tree914e1dd2cce73278c05e0942a5a8dfbfa55583ad /lib/Target/ARM
parent2becaaf3a15a8815f93e65f768038427051ee004 (diff)
downloadllvm-bf329b3414bbc24efb6d44952a7cbf66c83bcca1.tar.gz
llvm-bf329b3414bbc24efb6d44952a7cbf66c83bcca1.tar.bz2
llvm-bf329b3414bbc24efb6d44952a7cbf66c83bcca1.tar.xz
ARM IAS: remove unnecessary special case
Tag_nodefaults is even and greater than 32 and thus does not need the special check to fall into the correct category. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r--lib/Target/ARM/AsmParser/ARMAsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 2b92b23a15..8fda89c181 100644
--- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -8365,7 +8365,7 @@ bool ARMAsmParser::parseDirectiveEabiAttr(SMLoc L) {
else if (Tag == ARMBuildAttrs::compatibility) {
IsStringValue = true;
IsIntegerValue = true;
- } else if (Tag == ARMBuildAttrs::nodefaults || Tag < 32 || Tag % 2 == 0)
+ } else if (Tag < 32 || Tag % 2 == 0)
IsIntegerValue = true;
else if (Tag % 2 == 1)
IsStringValue = true;