summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-05-02 22:07:37 +0000
committerReid Kleckner <rnk@google.com>2017-05-02 22:07:37 +0000
commitee4930b6886d713778fff4de3948946c7658d9d9 (patch)
tree24f60ae0cadbe03c5b098d2c86bba5ebfd88636f /clang/lib/CodeGen/CGCall.cpp
parent65134057357725c245fcfeb4b588518ef6d6db20 (diff)
downloadbcm5719-llvm-ee4930b6886d713778fff4de3948946c7658d9d9.tar.gz
bcm5719-llvm-ee4930b6886d713778fff4de3948946c7658d9d9.zip
Re-land r301697 "[IR] Make add/remove Attributes use AttrBuilder instead of AttributeList"
This time, I fixed, built, and tested clang. This reverts r301712. llvm-svn: 301981
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index a5c43fba6d0..c677d9887ac 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1756,9 +1756,7 @@ void CodeGenModule::AddDefaultFnAttrs(llvm::Function &F) {
ConstructDefaultFnAttrList(F.getName(),
F.hasFnAttribute(llvm::Attribute::OptimizeNone),
/* AttrOnCallsite = */ false, FuncAttrs);
- llvm::AttributeList AS = llvm::AttributeList::get(
- getLLVMContext(), llvm::AttributeList::FunctionIndex, FuncAttrs);
- F.addAttributes(llvm::AttributeList::FunctionIndex, AS);
+ F.addAttributes(llvm::AttributeList::FunctionIndex, FuncAttrs);
}
void CodeGenModule::ConstructAttributeList(
OpenPOWER on IntegriCloud