[llvm] Use std::nullopt instead of None in comments (NFC)
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
This commit is contained in:
@@ -1641,7 +1641,7 @@ public:
|
||||
|
||||
// Search all operands in Ops[*][Lane] for the one that matches best
|
||||
// Ops[OpIdx][LastLane] and return its opreand index.
|
||||
// If no good match can be found, return None.
|
||||
// If no good match can be found, return std::nullopt.
|
||||
Optional<unsigned> getBestOperand(unsigned OpIdx, int Lane, int LastLane,
|
||||
ArrayRef<ReorderingMode> ReorderingModes,
|
||||
ArrayRef<Value *> MainAltOps) {
|
||||
@@ -1721,7 +1721,7 @@ public:
|
||||
getData(*BestOp.Idx, Lane).IsUsed = IsUsed;
|
||||
return BestOp.Idx;
|
||||
}
|
||||
// If we could not find a good match return None.
|
||||
// If we could not find a good match return std::nullopt.
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user