diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-25 11:55:33 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-25 11:55:33 -0700 |
commit | b8df4093e4d82c67a419911a46b63482043643e5 (patch) | |
tree | 21094939ea6c8b726c481d7b28eaf4ea27c64008 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7d101e43cd8afe7368c2180ce33b70b71572e846 (diff) | |
download | llvm-b8df4093e4d82c67a419911a46b63482043643e5.zip llvm-b8df4093e4d82c67a419911a46b63482043643e5.tar.gz llvm-b8df4093e4d82c67a419911a46b63482043643e5.tar.bz2 |
[clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC)
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index f7bac66..17b8e6b 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2839,7 +2839,7 @@ bool CodeGenModule::isProfileInstrExcluded(llvm::Function *Fn, auto &SM = Context.getSourceManager(); if (const auto *MainFile = SM.getFileEntryForID(SM.getMainFileID())) { Optional<bool> V = ProfileList.isFileExcluded(MainFile->getName(), Kind); - if (V.hasValue()) + if (V) return *V; } return ProfileList.getDefault(); |