@@ -172,7 +172,7 @@ class MemProfiler {
172172 // / If it is an interesting memory access, populate information
173173 // / about the access and return a InterestingMemoryAccess struct.
174174 // / Otherwise return std::nullopt.
175- Optional <InterestingMemoryAccess>
175+ std::optional <InterestingMemoryAccess>
176176 isInterestingMemoryAccess (Instruction *I) const ;
177177
178178 void instrumentMop (Instruction *I, const DataLayout &DL,
@@ -267,7 +267,7 @@ void MemProfiler::instrumentMemIntrinsic(MemIntrinsic *MI) {
267267 MI->eraseFromParent ();
268268}
269269
270- Optional <InterestingMemoryAccess>
270+ std::optional <InterestingMemoryAccess>
271271MemProfiler::isInterestingMemoryAccess (Instruction *I) const {
272272 // Do not instrument the load fetching the dynamic shadow address.
273273 if (DynamicShadowOffset == I)
@@ -585,7 +585,7 @@ bool MemProfiler::instrumentFunction(Function &F) {
585585 for (auto *Inst : ToInstrument) {
586586 if (ClDebugMin < 0 || ClDebugMax < 0 ||
587587 (NumInstrumented >= ClDebugMin && NumInstrumented <= ClDebugMax)) {
588- Optional <InterestingMemoryAccess> Access =
588+ std::optional <InterestingMemoryAccess> Access =
589589 isInterestingMemoryAccess (Inst);
590590 if (Access)
591591 instrumentMop (Inst, F.getParent ()->getDataLayout (), *Access);
0 commit comments