diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-27 10:28:39 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-27 10:28:39 +0000 |
commit | f5c1f555cb5df255e7af9122eb7531b4646db847 (patch) | |
tree | d63c58d5ba0d97588e27d21ea3255e8d9722ebff /llvm/lib/IR/Attributes.cpp | |
parent | a05f97c6e5db78a17ea489b1f27aee9dc0f0ec94 (diff) | |
download | bcm5719-llvm-f5c1f555cb5df255e7af9122eb7531b4646db847.tar.gz bcm5719-llvm-f5c1f555cb5df255e7af9122eb7531b4646db847.zip |
Fix miscompile. Add back the use of the ArrayRef version of the ::get method.
llvm-svn: 173613
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 937514a0a4a..8ec192b813c 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -30,8 +30,11 @@ using namespace llvm; // Attribute Implementation //===----------------------------------------------------------------------===// -Attribute Attribute::get(LLVMContext &Context, AttrKind Kind) { - AttrBuilder B(Kind); +Attribute Attribute::get(LLVMContext &Context, ArrayRef<AttrKind> Kinds) { + AttrBuilder B; + for (ArrayRef<AttrKind>::iterator I = Kinds.begin(), E = Kinds.end(); + I != E; ++I) + B.addAttribute(*I); return Attribute::get(Context, B); } |