mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
improve indentation avoid a pointless conversion from weakvh to trackingvh,
no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -220,7 +220,7 @@ Value *SSAUpdater::GetValueAtEndOfBlockInternal(BasicBlock *BB) {
|
|||||||
|
|
||||||
// Query AvailableVals by doing an insertion of null.
|
// Query AvailableVals by doing an insertion of null.
|
||||||
std::pair<AvailableValsTy::iterator, bool> InsertRes =
|
std::pair<AvailableValsTy::iterator, bool> InsertRes =
|
||||||
AvailableVals.insert(std::make_pair(BB, WeakVH()));
|
AvailableVals.insert(std::make_pair(BB, TrackingVH<Value>()));
|
||||||
|
|
||||||
// Handle the case when the insertion fails because we have already seen BB.
|
// Handle the case when the insertion fails because we have already seen BB.
|
||||||
if (!InsertRes.second) {
|
if (!InsertRes.second) {
|
||||||
@@ -236,8 +236,8 @@ Value *SSAUpdater::GetValueAtEndOfBlockInternal(BasicBlock *BB) {
|
|||||||
// it. When we get back to the first instance of the recursion we will fill
|
// it. When we get back to the first instance of the recursion we will fill
|
||||||
// in the PHI node.
|
// in the PHI node.
|
||||||
return InsertRes.first->second =
|
return InsertRes.first->second =
|
||||||
PHINode::Create(PrototypeValue->getType(), PrototypeValue->getName(),
|
PHINode::Create(PrototypeValue->getType(), PrototypeValue->getName(),
|
||||||
&BB->front());
|
&BB->front());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Okay, the value isn't in the map and we just inserted a null in the entry
|
// Okay, the value isn't in the map and we just inserted a null in the entry
|
||||||
|
Reference in New Issue
Block a user