aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LLVMContext.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-20 20:05:16 -0700
committerKazu Hirata <kazu@google.com>2022-06-20 20:05:16 -0700
commit064a08cd955019da9130f1109bfa534e79b8ec7c (patch)
treee097a750d667d8ea431e374106ffbf075c8e3c90 /llvm/lib/IR/LLVMContext.cpp
parentb89f483064716be015d74e6ed3e0b09f9d925c30 (diff)
downloadllvm-064a08cd955019da9130f1109bfa534e79b8ec7c.zip
llvm-064a08cd955019da9130f1109bfa534e79b8ec7c.tar.gz
llvm-064a08cd955019da9130f1109bfa534e79b8ec7c.tar.bz2
Don't use Optional::hasValue (NFC)
Diffstat (limited to 'llvm/lib/IR/LLVMContext.cpp')
-rw-r--r--llvm/lib/IR/LLVMContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp
index 5dfca4a..4a1d5d3 100644
--- a/llvm/lib/IR/LLVMContext.cpp
+++ b/llvm/lib/IR/LLVMContext.cpp
@@ -156,7 +156,7 @@ uint64_t LLVMContext::getDiagnosticsMisExpectTolerance() const {
}
bool LLVMContext::isDiagnosticsHotnessThresholdSetFromPSI() const {
- return !pImpl->DiagnosticsHotnessThreshold.hasValue();
+ return !pImpl->DiagnosticsHotnessThreshold.has_value();
}
remarks::RemarkStreamer *LLVMContext::getMainRemarkStreamer() {