From 89fae41ef142892d8d6c20ead28465a34e12172b Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 5 Dec 2022 04:13:11 +0000 Subject: [IR] llvm::Optional => std::optional Many llvm/IR/* files have been migrated by other contributors. This migrates most remaining files. --- llvm/lib/IR/LLVMContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/LLVMContext.cpp') diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp index dc86714..2b55775 100644 --- a/llvm/lib/IR/LLVMContext.cpp +++ b/llvm/lib/IR/LLVMContext.cpp @@ -153,7 +153,7 @@ uint64_t LLVMContext::getDiagnosticsHotnessThreshold() const { return pImpl->DiagnosticsHotnessThreshold.value_or(UINT64_MAX); } void LLVMContext::setDiagnosticsMisExpectTolerance( - Optional Tolerance) { + std::optional Tolerance) { pImpl->DiagnosticsMisExpectTolerance = Tolerance; } uint32_t LLVMContext::getDiagnosticsMisExpectTolerance() const { -- cgit v1.1