Remove the bitwise AND operators from the Attributes class. Replace it with the equiv...
[oota-llvm.git] / lib / Transforms / IPO / DeadArgumentElimination.cpp
index 6b5238750486d283c60dbec5a3aceeea024a5294..aa34b33a8aedde4848cf734a169f586f8895b34e 100644 (file)
@@ -766,8 +766,9 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) {
       Attributes::get(Attributes::Builder(RAttrs).
                       removeAttributes(Attributes::typeIncompatible(NRetTy)));
   else
-    assert((RAttrs & Attributes::typeIncompatible(NRetTy)) == 0
-           && "Return attributes no longer compatible?");
+    assert(!Attributes::Builder(RAttrs).
+             hasAttributes(Attributes::typeIncompatible(NRetTy)) &&
+           "Return attributes no longer compatible?");
 
   if (RAttrs)
     AttributesVec.push_back(AttributeWithIndex::get(0, RAttrs));