diff options
-rw-r--r-- | compilerplugins/clang/compat.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx index 60888c15b1c9..5ad8ac9e98eb 100644 --- a/compilerplugins/clang/compat.hxx +++ b/compilerplugins/clang/compat.hxx @@ -37,7 +37,7 @@ constexpr bool has_value(llvm::Optional<T> const & o) { template<typename T> constexpr T const & value(llvm::Optional<T> const & o) { #if CLANG_VERSION >= 150000 - return o.value(); + return *o; #else return o.getValue(); #endif |