aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LLVMContext.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-18 23:07:11 -0700
committerKazu Hirata <kazu@google.com>2022-06-18 23:07:11 -0700
commit129b531c9c67fc50ef9dcb7d28d7081546213ac1 (patch)
treea8b4769c0d461caddac853ce26db0058acc710df /llvm/lib/IR/LLVMContext.cpp
parent1e556f459b44dd0ca4073e932f66ecb6f40fe31a (diff)
downloadllvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.zip
llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.tar.gz
llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.tar.bz2
[llvm] Use value_or instead of getValueOr (NFC)
Diffstat (limited to 'llvm/lib/IR/LLVMContext.cpp')
-rw-r--r--llvm/lib/IR/LLVMContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp
index 9a0e9ac..5dfca4a 100644
--- a/llvm/lib/IR/LLVMContext.cpp
+++ b/llvm/lib/IR/LLVMContext.cpp
@@ -145,14 +145,14 @@ bool LLVMContext::getMisExpectWarningRequested() const {
return pImpl->MisExpectWarningRequested;
}
uint64_t LLVMContext::getDiagnosticsHotnessThreshold() const {
- return pImpl->DiagnosticsHotnessThreshold.getValueOr(UINT64_MAX);
+ return pImpl->DiagnosticsHotnessThreshold.value_or(UINT64_MAX);
}
void LLVMContext::setDiagnosticsMisExpectTolerance(
Optional<uint64_t> Tolerance) {
pImpl->DiagnosticsMisExpectTolerance = Tolerance;
}
uint64_t LLVMContext::getDiagnosticsMisExpectTolerance() const {
- return pImpl->DiagnosticsMisExpectTolerance.getValueOr(0);
+ return pImpl->DiagnosticsMisExpectTolerance.value_or(0);
}
bool LLVMContext::isDiagnosticsHotnessThresholdSetFromPSI() const {