Add the LLVM context to this c'tor. It will be needed in the future.
authorBill Wendling <isanbard@gmail.com>
Thu, 11 Oct 2012 01:10:00 +0000 (01:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 11 Oct 2012 01:10:00 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165687 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Attributes.h
lib/VMCore/Attributes.cpp

index 8b43e08f084df3d140d2afcc318df6078cdc73b8..e0b6a507bc42a9000b3f4b25c5a5ecd300fcf712 100644 (file)
@@ -95,7 +95,7 @@ private:
 public:
   Attributes() : Attrs(0) {}
   explicit Attributes(uint64_t Val);
-  explicit Attributes(AttrVal Val);
+  explicit Attributes(LLVMContext &C, AttrVal Val);
   Attributes(const Attributes &A);
 
   class Builder {
index 7ae823214bbd869f43e849c4e7f00229b115e565..16c5466f17394779ac8052a69065561810283576 100644 (file)
@@ -29,7 +29,7 @@ using namespace llvm;
 
 Attributes::Attributes(uint64_t Val) : Attrs(Val) {}
 
-Attributes::Attributes(AttrVal Val)
+Attributes::Attributes(LLVMContext &C, AttrVal Val)
   : Attrs(Attributes::get(Attributes::Builder().addAttribute(Val)).Attrs) {}
 
 Attributes::Attributes(AttributesImpl *A) : Attrs(A->Bits) {}