diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-10 03:12:49 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-10 03:12:49 +0000 |
commit | f319e9905fbddc2cf83a9c82734f4591a6ba8d89 (patch) | |
tree | 63fd8d10af8d7d3aeebb909aff5b513211de47ec /llvm/lib/Transforms/IPO/Inliner.cpp | |
parent | 38b25bab29a4c9e1be56d7e233d82b36e7a89fae (diff) | |
download | bcm5719-llvm-f319e9905fbddc2cf83a9c82734f4591a6ba8d89.tar.gz bcm5719-llvm-f319e9905fbddc2cf83a9c82734f4591a6ba8d89.zip |
Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.
llvm-svn: 165595
Diffstat (limited to 'llvm/lib/Transforms/IPO/Inliner.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/Inliner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp index 876afd19f18..abcb25fd455 100644 --- a/llvm/lib/Transforms/IPO/Inliner.cpp +++ b/llvm/lib/Transforms/IPO/Inliner.cpp @@ -94,10 +94,10 @@ static bool InlineCallIfPossible(CallSite CS, InlineFunctionInfo &IFI, // If the inlined function had a higher stack protection level than the // calling function, then bump up the caller's stack protection level. if (Callee->getFnAttributes().hasAttribute(Attributes::StackProtectReq)) - Caller->addFnAttr(Attribute::StackProtectReq); + Caller->addFnAttr(Attributes::StackProtectReq); else if (Callee->getFnAttributes().hasAttribute(Attributes::StackProtect) && !Caller->getFnAttributes().hasAttribute(Attributes::StackProtectReq)) - Caller->addFnAttr(Attribute::StackProtect); + Caller->addFnAttr(Attributes::StackProtect); // Look at all of the allocas that we inlined through this call site. If we // have already inlined other allocas through other calls into this function, |