mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Change uses of Function::front to Function::getEntryBlock for readability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -108,7 +108,7 @@ static bool CheckForEscapingAllocas(BasicBlock *BB,
|
||||
// If this alloca is in the body of the function, or if it is a variable
|
||||
// sized allocation, we cannot tail call eliminate calls marked 'tail'
|
||||
// with this mechanism.
|
||||
if (BB != &BB->getParent()->front() ||
|
||||
if (BB != &BB->getParent()->getEntryBlock() ||
|
||||
!isa<ConstantInt>(AI->getArraySize()))
|
||||
CannotTCETailMarkedCall = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user