[polly] 6ccd163 - [Polly] Use std::nullopt to unbreak build.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 5 15:54:41 PST 2022


Author: Michael Kruse
Date: 2022-12-05T17:51:07-06:00
New Revision: 6ccd163c1c330db8aa78ebf5ae90bd436d23adb0

URL: https://github.com/llvm/llvm-project/commit/6ccd163c1c330db8aa78ebf5ae90bd436d23adb0
DIFF: https://github.com/llvm/llvm-project/commit/6ccd163c1c330db8aa78ebf5ae90bd436d23adb0.diff

LOG: [Polly] Use std::nullopt to unbreak build.

Added: 
    

Modified: 
    polly/lib/CodeGen/PPCGCodeGeneration.cpp

Removed: 
    


################################################################################
diff  --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
index 170f08e532ee8..41b90bc976c2f 100644
--- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp
+++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
@@ -2383,7 +2383,7 @@ std::string GPUNodeBuilder::createKernelASM() {
   }
 
   std::unique_ptr<TargetMachine> TargetM(GPUTarget->createTargetMachine(
-      GPUTriple.getTriple(), subtarget, "", Options, Optional<Reloc::Model>()));
+      GPUTriple.getTriple(), subtarget, "", Options, std::nullopt));
 
   SmallString<0> ASMString;
   raw_svector_ostream ASMStream(ASMString);


        


More information about the llvm-commits mailing list