diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-19 09:12:01 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-19 09:12:01 -0700 |
commit | aa88161b378ecb49388eefc28abe2926a229bcfc (patch) | |
tree | 62b3139d6f697fdfbfeb913c8bc54c01fd86872d /lldb/source/API/SBModule.cpp | |
parent | 0399473de886595d8ce3346f2cc99c94267496e5 (diff) | |
download | llvm-aa88161b378ecb49388eefc28abe2926a229bcfc.zip llvm-aa88161b378ecb49388eefc28abe2926a229bcfc.tar.gz llvm-aa88161b378ecb49388eefc28abe2926a229bcfc.tar.bz2 |
[lldb] Use value_or instead of getValueOr (NFC)
Diffstat (limited to 'lldb/source/API/SBModule.cpp')
-rw-r--r-- | lldb/source/API/SBModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp index 1454012..c4e876e 100644 --- a/lldb/source/API/SBModule.cpp +++ b/lldb/source/API/SBModule.cpp @@ -617,9 +617,9 @@ uint32_t SBModule::GetVersion(uint32_t *versions, uint32_t num_versions) { if (num_versions > 0) versions[0] = version.empty() ? UINT32_MAX : version.getMajor(); if (num_versions > 1) - versions[1] = version.getMinor().getValueOr(UINT32_MAX); + versions[1] = version.getMinor().value_or(UINT32_MAX); if (num_versions > 2) - versions[2] = version.getSubminor().getValueOr(UINT32_MAX); + versions[2] = version.getSubminor().value_or(UINT32_MAX); for (uint32_t i = 3; i < num_versions; ++i) versions[i] = UINT32_MAX; return result; |