[LLVMbugs] [Bug 14058] Broken Attribute Maniuplation: AttrListPtr::{addAttr, removeAttr} erroneously update attribute set
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 10 18:02:20 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=14058
Bill Wendling <wendling at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Bill Wendling <wendling at apple.com> 2012-10-10 20:02:20 CDT ---
The program is essentially broken as is. You can't pass the 'AttrVal' in as a
parameter. At least not yet. This is how you should do that:
Attributes::Builder B;
B.addAttribute(Attributes::ZExt);
F->addAttribute(1, Attributes::get(B));
I'm thinking of adding a helper c'tor to the Attributes class though that could
support the original code, since this is a common enough idiom...But it's not
there just yet.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list