Changing Alignment Attribute using New Attribute API

Dear All,

Under the old attribute API, when we modified the alignment attribute of a byval argument in a caller or callee, we first removed the old alignment attribute and then added a new alignment attribute.

With the new API, can I just use the AttrBuilder to build the alignment attribute and then use the addAttribute() method of CallInst and Argument to overwrite the old alignment attribute?

-- John T.