mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user