[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:
@@ -2657,7 +2657,7 @@ void ModuleBitcodeWriter::writeConstants(unsigned FirstVal, unsigned LastVal,
|
||||
Code = bitc::CST_CODE_CE_GEP;
|
||||
const auto *GO = cast<GEPOperator>(C);
|
||||
Record.push_back(VE.getTypeID(GO->getSourceElementType()));
|
||||
if (Optional<unsigned> Idx = GO->getInRangeIndex()) {
|
||||
if (std::optional<unsigned> Idx = GO->getInRangeIndex()) {
|
||||
Code = bitc::CST_CODE_CE_GEP_WITH_INRANGE_INDEX;
|
||||
Record.push_back((*Idx << 1) | GO->isInBounds());
|
||||
} else if (GO->isInBounds())
|
||||
|
||||
Reference in New Issue
Block a user