Update to attribute API change in the release_32 branch of LLVM.

llvm-svn: 168896
diff --git a/safecode/lib/SoftBound/SoftBoundCETS.cpp b/safecode/lib/SoftBound/SoftBoundCETS.cpp
index 82a8c07..8bbf408 100644
--- a/safecode/lib/SoftBound/SoftBoundCETS.cpp
+++ b/safecode/lib/SoftBound/SoftBoundCETS.cpp
@@ -617,7 +617,8 @@
 
   // set the new function attributes 
   new_func->copyAttributesFrom(main_func);
-  new_func->setAttributes(AttrListPtr::get(param_attrs_vec));
+  new_func->setAttributes(AttrListPtr::get(module.getContext(),
+                                           param_attrs_vec));
     
   main_func->getParent()->getFunctionList().insert(main_func, new_func);
   main_func->replaceAllUsesWith(new_func);
@@ -1586,7 +1587,8 @@
 
   int total_pointer_count = 0;
   SmallVector<AttributeWithIndex, 8> param_attrs_vec;
-  call_inst->setAttributes(AttrListPtr::get(param_attrs_vec));  
+  call_inst->setAttributes(AttrListPtr::get(call_inst->getContext(),
+                                            param_attrs_vec));  
     
   CallSite cs(call_inst);
   for(unsigned i = 0; i < cs.arg_size(); i++){
@@ -3274,7 +3276,7 @@
   FunctionType* nfty = FunctionType::get(ret_type, params, fty->isVarArg());
   Function* new_func = Function::Create(nfty, func->getLinkage(), transformFunctionName(func->getName()));
   new_func->copyAttributesFrom(func);
-  new_func->setAttributes(AttrListPtr::get(param_attrs_vec));    
+  new_func->setAttributes(AttrListPtr::get(func->getContext(),param_attrs_vec));    
   func->getParent()->getFunctionList().insert(func, new_func);
     
   if(!external) {