Remove redundant check.
authorDevang Patel <dpatel@apple.com>
Thu, 2 Oct 2008 18:38:23 +0000 (18:38 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 2 Oct 2008 18:38:23 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56960 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index 527b1da87e2452d330697843dbafe0a4f4b25598..a3d33176ef50af87ddc8224ef1c1d2006df11f37 100644 (file)
@@ -483,15 +483,6 @@ void Verifier::VerifyFunctionAttrs(const FunctionType *FT,
     Assert1(!(MutI & (MutI - 1)), "Attributes " +
             Attribute::getAsString(MutI) + " are incompatible!", V);
   }
-
-  Attributes RAttrs = Attrs.getRetAttributes();
-  for (unsigned i = 0;
-       i < array_lengthof(Attribute::MutuallyIncompatible); ++i) {
-    Attributes MutI = RAttrs & Attribute::MutuallyIncompatible[i];
-    Assert1(!(MutI & (MutI - 1)), "Attributes " +
-            Attribute::getAsString(MutI) + " are incompatible!", V);
-  }
-
 }
 
 static bool VerifyAttributeCount(const AttrListPtr &Attrs, unsigned Params) {