mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
[C++] Use 'nullptr'. Transforms edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -53,10 +53,10 @@ Function* PartialInliner::unswitchFunction(Function* F) {
|
||||
BasicBlock* entryBlock = F->begin();
|
||||
BranchInst *BR = dyn_cast<BranchInst>(entryBlock->getTerminator());
|
||||
if (!BR || BR->isUnconditional())
|
||||
return 0;
|
||||
return nullptr;
|
||||
|
||||
BasicBlock* returnBlock = 0;
|
||||
BasicBlock* nonReturnBlock = 0;
|
||||
BasicBlock* returnBlock = nullptr;
|
||||
BasicBlock* nonReturnBlock = nullptr;
|
||||
unsigned returnCount = 0;
|
||||
for (succ_iterator SI = succ_begin(entryBlock), SE = succ_end(entryBlock);
|
||||
SI != SE; ++SI)
|
||||
@@ -67,7 +67,7 @@ Function* PartialInliner::unswitchFunction(Function* F) {
|
||||
nonReturnBlock = *SI;
|
||||
|
||||
if (returnCount != 1)
|
||||
return 0;
|
||||
return nullptr;
|
||||
|
||||
// Clone the function, so that we can hack away on it.
|
||||
ValueToValueMapTy VMap;
|
||||
|
||||
Reference in New Issue
Block a user