Now Attributes are divided in three groups
[oota-llvm.git] / lib / Transforms / IPO / PruneEH.cpp
index 821e7d5da979d2ccdc1e6d7bf9e264134e7a90d3..622184415cbbc82794fa83dab2e4d2d5faeb5fa3 100644 (file)
@@ -133,7 +133,7 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) {
         NewAttributes |= Attribute::NoReturn;
 
       const AttrListPtr &PAL = SCC[i]->getFunction()->getAttributes();
-      const AttrListPtr &NPAL = PAL.addAttr(0, NewAttributes);
+      const AttrListPtr &NPAL = PAL.addAttr(~0, NewAttributes);
       if (PAL != NPAL) {
         MadeChange = true;
         SCC[i]->getFunction()->setAttributes(NPAL);