diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp index 399aa63..e3b3d5e 100644 --- a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp @@ -124,8 +124,8 @@ struct NonTrivialUnswitchCandidate { TinyPtrVector<Value *> Invariants; Optional<InstructionCost> Cost; NonTrivialUnswitchCandidate(Instruction *TI, ArrayRef<Value *> Invariants, - Optional<InstructionCost> Cost = None) - : TI(TI), Invariants(Invariants), Cost(Cost) {}; + Optional<InstructionCost> Cost = std::nullopt) + : TI(TI), Invariants(Invariants), Cost(Cost){}; }; } // end anonymous namespace. |