From d56ce45fd58e2ecb1027ec73ae23ed9dcde904f5 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 11 Oct 2012 01:10:00 +0000 Subject: [PATCH] Add the LLVM context to this c'tor. It will be needed in the future. llvm-svn: 165687 --- include/llvm/Attributes.h | 2 +- lib/VMCore/Attributes.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index 8b43e08f084..e0b6a507bc4 100644 --- a/include/llvm/Attributes.h +++ b/include/llvm/Attributes.h @@ -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 { diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp index 7ae823214bb..16c5466f173 100644 --- a/lib/VMCore/Attributes.cpp +++ b/lib/VMCore/Attributes.cpp @@ -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) {}