summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-02-05 23:40:04 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-02-05 23:40:04 +0000
commit86d7d83f2a3967980c23e0f2438b7cc0c6c4ad08 (patch)
tree8a48ed2f0c82ebb0402ab185d490ad5ea53e3ff3 /llvm/lib
parentf920e4b1232b6b0e94dc34ef65c2f0f85100b04f (diff)
downloadbcm5719-llvm-86d7d83f2a3967980c23e0f2438b7cc0c6c4ad08.tar.gz
bcm5719-llvm-86d7d83f2a3967980c23e0f2438b7cc0c6c4ad08.zip
[StatepointLower] Use None instead of Optional<int>()
llvm-svn: 259956
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
index edd0ca47c38..5b9c614476d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
@@ -125,7 +125,7 @@ static Optional<int> findPreviousSpillSlot(const Value *Val,
int LookUpDepth) {
// Can not look any further - give up now
if (LookUpDepth <= 0)
- return Optional<int>();
+ return None;
// Spill location is known for gc relocates
if (const auto *Relocate = dyn_cast<GCRelocateInst>(Val)) {
@@ -134,7 +134,7 @@ static Optional<int> findPreviousSpillSlot(const Value *Val,
auto It = SpillMap.find(Relocate->getDerivedPtr());
if (It == SpillMap.end())
- return Optional<int>();
+ return None;
return It->second;
}
@@ -154,10 +154,10 @@ static Optional<int> findPreviousSpillSlot(const Value *Val,
Optional<int> SpillSlot =
findPreviousSpillSlot(IncomingValue, Builder, LookUpDepth - 1);
if (!SpillSlot.hasValue())
- return Optional<int>();
+ return None;
if (MergedResult.hasValue() && *MergedResult != *SpillSlot)
- return Optional<int>();
+ return None;
MergedResult = SpillSlot;
}
@@ -192,7 +192,7 @@ static Optional<int> findPreviousSpillSlot(const Value *Val,
// which we visit values is unspecified.
// Don't know any information about this instruction
- return Optional<int>();
+ return None;
}
/// Try to find existing copies of the incoming values in stack slots used for
OpenPOWER on IntegriCloud