http://llvm.org/bugs/show_bug.cgi?id=14058

Bill Wendling <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Bill Wendling <[email protected]> 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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to