diff options
author | Fangrui Song <i@maskray.me> | 2022-12-05 04:13:11 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-05 04:13:11 +0000 |
commit | 89fae41ef142892d8d6c20ead28465a34e12172b (patch) | |
tree | 95d80b9764e5d1d25bf8485a8426e6a409930b50 /llvm/lib/IR/LLVMContext.cpp | |
parent | 768cae4a5ab3a564b25ed36c379423f71b42d9d0 (diff) | |
download | llvm-89fae41ef142892d8d6c20ead28465a34e12172b.zip llvm-89fae41ef142892d8d6c20ead28465a34e12172b.tar.gz llvm-89fae41ef142892d8d6c20ead28465a34e12172b.tar.bz2 |
[IR] llvm::Optional => std::optional
Many llvm/IR/* files have been migrated by other contributors.
This migrates most remaining files.
Diffstat (limited to 'llvm/lib/IR/LLVMContext.cpp')
-rw-r--r-- | llvm/lib/IR/LLVMContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<uint32_t> Tolerance) { + std::optional<uint32_t> Tolerance) { pImpl->DiagnosticsMisExpectTolerance = Tolerance; } uint32_t LLVMContext::getDiagnosticsMisExpectTolerance() const { |