@@ -702,7 +702,7 @@ void SPIRVToLLVM::setLLVMLoopMetadata(const LoopInstType *LM,
702
702
if (!LM)
703
703
return ;
704
704
705
- auto Temp = MDNode::getTemporary (*Context, std::nullopt );
705
+ auto Temp = MDNode::getTemporary (*Context, {} );
706
706
auto *Self = MDNode::get (*Context, Temp.get ());
707
707
Self->replaceOperandWith (0 , Self);
708
708
SPIRVWord LC = LM->getLoopControl ();
@@ -852,8 +852,7 @@ void SPIRVToLLVM::setLLVMLoopMetadata(const LoopInstType *LM,
852
852
// Emit a distinct index group that will be referenced from
853
853
// llvm.loop.parallel_access_indices metadata; hash the new
854
854
// MDNode for future accesses to the same memory.
855
- CurrentDepthIdxGroup =
856
- llvm::MDNode::getDistinct (*Context, std::nullopt);
855
+ CurrentDepthIdxGroup = llvm::MDNode::getDistinct (*Context, {});
857
856
OffsetIdxGroupMap.emplace (Info, CurrentDepthIdxGroup);
858
857
} else {
859
858
// Previous accesses to that field have already been indexed,
@@ -863,8 +862,7 @@ void SPIRVToLLVM::setLLVMLoopMetadata(const LoopInstType *LM,
863
862
} else /* Regular kernel-scope array/pointer variable */ {
864
863
// Emit a distinct index group that will be referenced from
865
864
// llvm.loop.parallel_access_indices metadata
866
- CurrentDepthIdxGroup =
867
- llvm::MDNode::getDistinct (*Context, std::nullopt);
865
+ CurrentDepthIdxGroup = llvm::MDNode::getDistinct (*Context, {});
868
866
}
869
867
870
868
unsigned Safelen = PointerSflnMap.find (ArrayGEPIt.first )->second ;
0 commit comments