aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/BuildID.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Object/BuildID.cpp')
-rw-r--r--llvm/lib/Object/BuildID.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/BuildID.cpp b/llvm/lib/Object/BuildID.cpp
index 68b6f43..2b7d3c0 100644
--- a/llvm/lib/Object/BuildID.cpp
+++ b/llvm/lib/Object/BuildID.cpp
@@ -54,7 +54,7 @@ Optional<BuildIDRef> getBuildID(const ObjectFile *Obj) {
return getBuildID(O->getELFFile());
if (auto *O = dyn_cast<ELFObjectFile<ELF64BE>>(Obj))
return getBuildID(O->getELFFile());
- return None;
+ return std::nullopt;
}
Optional<std::string> BuildIDFetcher::fetch(BuildIDRef BuildID) const {
@@ -86,7 +86,7 @@ Optional<std::string> BuildIDFetcher::fetch(BuildIDRef BuildID) const {
return std::string(Path);
}
}
- return None;
+ return std::nullopt;
}
} // namespace object