]> granicus.if.org Git - clang/commitdiff
[IR] Add AttributeSet to hide AttributeSetNode* again, NFC
authorReid Kleckner <rnk@google.com>
Wed, 12 Apr 2017 00:38:00 +0000 (00:38 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 12 Apr 2017 00:38:00 +0000 (00:38 +0000)
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

index 7fe8bf04129d55c910a47c1616b152585dc8105b..e0830663349456ad9abb76a50b8161b91354b08c 100644 (file)
@@ -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.