ARM IAS: remove unnecessary special case
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 19 Jan 2014 08:25:19 +0000 (08:25 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 19 Jan 2014 08:25:19 +0000 (08:25 +0000)
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

lib/Target/ARM/AsmParser/ARMAsmParser.cpp

index 2b92b23a15163129188a8a9e5c1b0099795ac679..8fda89c18126feee963f10596e93622fe2de79d5 100644 (file)
@@ -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;