From 9cdcf26331e80cf45404141c3d6f9fa2c6e4f9b7 Mon Sep 17 00:00:00 2001 From: Reid Kleckner <rnk@google.com> Date: Wed, 12 Apr 2017 00:38:00 +0000 Subject: [PATCH] [IR] Add AttributeSet to hide AttributeSetNode* again, NFC Summary: For now, it just wraps AttributeSetNode*. Eventually, it will hold AvailableAttrs as an inline bitset, and adding and removing enum attributes will be super cheap. This sinks AttributeSetNode back down to lib/IR/AttributeImpl.h. Reviewers: pete, chandlerc Subscribers: llvm-commits, jfb Differential Revision: https://reviews.llvm.org/D31940 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300014 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 7fe8bf04129..e0830663349 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -2935,7 +2935,7 @@ static void replaceUsesOfNonProtoConstant(llvm::Constant *old, continue; // Get the call site's attribute list. - SmallVector<llvm::AttributeSetNode *, 8> newAttrs; + SmallVector<llvm::AttributeSet, 8> newAttrs; llvm::AttributeList oldAttrs = callSite.getAttributes(); // Collect any return attributes from the call. -- GitLab