aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Attributes.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-19 23:55:43 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-19 23:55:43 +0000
commit5f93e2bee5cee8c9ba2d12f5de9cb14d5b45be02 (patch)
treeb7c033271e8b8a4370486e09825f8dcc041226e4 /lib/VMCore/Attributes.cpp
parentfbf3b4a07690751f72302757058ab0298dfb832e (diff)
Add a context so that once we uniquify strings we can access them easily.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Attributes.cpp')
-rw-r--r--lib/VMCore/Attributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp
index 4b975238b2..9e24add8c8 100644
--- a/lib/VMCore/Attributes.cpp
+++ b/lib/VMCore/Attributes.cpp
@@ -382,7 +382,7 @@ AttributeSet AttributeSet::get(LLVMContext &C,
// If we didn't find any existing attributes of the same shape then
// create a new one and insert it.
if (!PA) {
- PA = new AttributeSetImpl(Attrs);
+ PA = new AttributeSetImpl(C, Attrs);
pImpl->AttrsLists.InsertNode(PA, InsertPoint);
}