Attributes Rewrite
[oota-llvm.git] / lib / Transforms / IPO / GlobalOpt.cpp
index a32f35a8df7a92483cdb9662c70e40a57abc23e6..d4eeafa859267f1ec838bbdd8c6c97dc0b148a9a 100644 (file)
@@ -2070,7 +2070,7 @@ static AttrListPtr StripNest(LLVMContext &C, const AttrListPtr &Attrs) {
       continue;
 
     // There can be only one.
-    return Attrs.removeAttr(C, Attrs.getSlot(i).Index, Attributes::get(B));
+    return Attrs.removeAttr(C, Attrs.getSlot(i).Index, Attributes::get(C, B));
   }
 
   return Attrs;