diff options
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
| -rw-r--r-- | llvm/unittests/ADT/APIntTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp index b306a6d..3055581 100644 --- a/llvm/unittests/ADT/APIntTest.cpp +++ b/llvm/unittests/ADT/APIntTest.cpp @@ -13,6 +13,7 @@ #include "llvm/ADT/Twine.h" #include "gtest/gtest.h" #include <array> +#include <optional> using namespace llvm; @@ -2956,7 +2957,7 @@ TEST(APIntTest, GetMostSignificantDifferentBit) { TEST(APIntTest, GetMostSignificantDifferentBitExaustive) { auto GetHighestDifferentBitBruteforce = - [](const APInt &V0, const APInt &V1) -> llvm::Optional<unsigned> { + [](const APInt &V0, const APInt &V1) -> std::optional<unsigned> { assert(V0.getBitWidth() == V1.getBitWidth() && "Must have same bitwidth"); if (V0 == V1) return std::nullopt; // Bitwise identical. |
