[IR] llvm::Optional => std::optional

Many llvm/IR/* files have been migrated by other contributors.
This migrates most remaining files.
This commit is contained in:
Fangrui Song
2022-12-05 04:13:11 +00:00
parent 768cae4a5a
commit 89fae41ef1
53 changed files with 97 additions and 101 deletions

View File

@@ -551,7 +551,7 @@ public:
return makeArrayRef(getTrailingObjects<unsigned>(), NumOperands);
}
Optional<unsigned> getInRangeIndex() const {
std::optional<unsigned> getInRangeIndex() const {
assert(Opcode == Instruction::GetElementPtr);
if (Extra == (unsigned)-1)
return std::nullopt;